QFlag Class
Die Klasse QFlag ist ein Hilfsdatentyp für QFlags. Mehr...
Kopfzeile: | #include <QFlag> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
Öffentliche Funktionen
QFlag(int value) | |
QFlag(short value) | |
QFlag(uint value) | |
QFlag(ushort value) | |
int | operator int() const |
uint | operator uint() const |
Detaillierte Beschreibung
Sie entspricht einer einfachen int
, mit Ausnahme von Funktionsüberladung und Typkonvertierungen. Sie sollten diese Klasse nie in Ihren Anwendungen verwenden müssen.
Siehe auch QFlags.
Dokumentation der Mitgliedsfunktionen
[constexpr noexcept]
QFlag::QFlag(int value)
Konstruiert ein QFlag-Objekt, das die value speichert.
[constexpr noexcept]
QFlag::QFlag(short value)
Konstruiert ein QFlag-Objekt, das die value speichert.
[constexpr noexcept]
QFlag::QFlag(uint value)
Konstruiert ein QFlag-Objekt, das die value speichert.
[constexpr noexcept]
QFlag::QFlag(ushort value)
Konstruiert ein QFlag-Objekt, das die value speichert.
[constexpr noexcept]
int QFlag::operator int() const
Gibt den im Objekt QFlag gespeicherten Wert zurück.
[constexpr noexcept]
uint QFlag::operator uint() const
Gibt den im Objekt QFlag gespeicherten Wert zurück.
© 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.