QMetaClassInfo Class
QMetaClassInfo 클래스는 클래스에 대한 추가 정보를 제공합니다. 더 보기...
헤더: | #include <QMetaClassInfo> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
공용 함수
상세 설명
클래스 정보 항목은 소스 코드에서 Q_CLASSINFO()를 사용하여 지정하는 간단한 이름-값 쌍입니다. 이 정보는 name() 및 value()를 사용하여 검색할 수 있습니다. 예를 들어
class MyClass { Q_OBJECT Q_CLASSINFO("author", "Sabrina Schweinsteiger") Q_CLASSINFO("url", "http://doc.moosesoft.co.uk/1.0/") public: ... };
이 메커니즘은 Qt 애플리케이션에서 무료로 사용할 수 있습니다.
참고: 이 메커니즘은 Active Qt, Qt D-Bus, Qt Qml및 Qt Remote Objects 모듈에서도 사용됩니다. 이러한 모듈을 사용할 때 일부 키가 설정될 수 있습니다.
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.