- class QMetaClassInfo#
The
QMetaClassInfo
class provides additional information about a class. More…Synopsis#
Methods#
def
__init__()
def
name()
def
value()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
Warning
This section contains snippets that were automatically translated from C++ to Python and may contain errors.
Class information items are simple name–value pairs that are specified using
Q_CLASSINFO()
in the source code. The information can be retrieved usingname()
andvalue()
. For example:class MyClass(): Q_OBJECT Q_CLASSINFO("author", "Sabrina Schweinsteiger") Q_CLASSINFO("url", "http://doc.moosesoft.co.uk/1.0/") # public ...
This mechanism is free for you to use in your Qt applications.
Note
It’s also used by the Active Qt, Qt D-Bus, Qt Qml, and Qt Remote Objects modules. Some keys might be set when using these modules.
See also
- __init__()#
- name()#
- Return type:
str
Returns the name of this item.
See also
- value()#
- Return type:
str
Returns the value of this item.
See also