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