diff options
Diffstat (limited to 'doc/extras/PySide.QtCore.ClassInfo.rst')
-rw-r--r-- | doc/extras/PySide.QtCore.ClassInfo.rst | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/extras/PySide.QtCore.ClassInfo.rst b/doc/extras/PySide.QtCore.ClassInfo.rst new file mode 100644 index 00000000..39edf3f6 --- /dev/null +++ b/doc/extras/PySide.QtCore.ClassInfo.rst @@ -0,0 +1,23 @@ +.. module:: PySide.QtCore +.. _ClassInfo: + +ClassInfo +********* + +This class is used to associates extra information to the class, which is available +using QObject.metaObject(). Qt and PySide doesn't use this information. + +The extra information takes the form of a dictionary with key and value in a literal string. + +.. note:: This Class is a implementation of Q_CLASSINFO macro. + + +Example +------- + +:: + + @ClassInfo(Author='PySide Team', URL='http://www.pyside.org') + class MyObject(QObject): + ... + |