Created ClassInfo documentation.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Hugo Parente <hugo.lima@openbossa.org>
This commit is contained in:
parent
35630f32ff
commit
2e985afb3a
1 changed files with 23 additions and 0 deletions
23
doc/extras/PySide.QtCore.ClassInfo.rst
Normal file
23
doc/extras/PySide.QtCore.ClassInfo.rst
Normal file
|
|
@ -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):
|
||||||
|
...
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue