aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/doc/extras/QtCore.ClassInfo.rst
blob: 89ca926c7cdff42584c26263b54dee268fd91164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.. currentmodule:: PySide2.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):
        ...