Auf dieser Seite

QFlag Class

Die Klasse „QFlag“ ist ein Hilfsdatentyp für „ QFlags “. Mehr dazu...

Header: #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)
operator int() const
operator uint() const

Ausführliche Beschreibung

Sie entspricht einer einfachen ` int`, mit Ausnahme der Funktionsüberladung und der Typkonvertierungen. Sie sollten diese Klasse in Ihren Anwendungen niemals verwenden müssen.

Siehe auch ` QFlags`.

Dokumentation der Mitgliedsfunktionen

[constexpr noexcept] QFlag::QFlag(int value)

Erstellt ein QFlag-Objekt, das die „ value “ speichert.

[constexpr noexcept] QFlag::QFlag(short value)

Erstellt ein QFlag-Objekt, das den Wert „ value “ speichert.

[constexpr noexcept] QFlag::QFlag(uint value)

Erstellt ein QFlag-Objekt, das die „ value “ speichert.

[constexpr noexcept] QFlag::QFlag(ushort value)

Erstellt ein QFlag-Objekt, das die „ value “ speichert.

[constexpr noexcept] QFlag::operator int() const

Gibt den vom Objekt „ QFlag “ gespeicherten Wert zurück.

[constexpr noexcept] QFlag::operator uint() const

Gibt den vom Objekt „ QFlag “ gespeicherten Wert zurück.

© 2026 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.