QMetaClassInfo Class
Die Klasse QMetaClassInfo liefert zusätzliche Informationen über eine Klasse. Mehr...
Kopfzeile: | #include <QMetaClassInfo> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
Öffentliche Funktionen
Detaillierte Beschreibung
Klasseninformationen sind einfache Name-Wert-Paare, die mit Q_CLASSINFO() im Quellcode angegeben werden. Die Informationen können mit name() und value() abgerufen werden. Ein Beispiel:
class MyClass { Q_OBJECT Q_CLASSINFO("author", "Sabrina Schweinsteiger") Q_CLASSINFO("url", "http://doc.moosesoft.co.uk/1.0/") public: ... };
Dieser Mechanismus steht Ihnen zur Verwendung in Ihren Qt-Anwendungen frei zur Verfügung.
Hinweis: Er wird auch von der Active Qt, Qt D-Bus, Qt Qml, und Qt Remote Objects Modulen verwendet. Bei Verwendung dieser Module werden möglicherweise einige Schlüssel gesetzt.
Siehe auch QMetaObject.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.