aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/extras/QtCore.ClassInfo.rst
blob: b767ae153861edfc1d67b4a10b99bbc19e7f014c (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:: PySide6.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):
        ...