In questa pagina

QFlag Class

La classe QFlag è un tipo di dati ausiliario per QFlags. Per saperne di più...

Intestazione: #include <QFlag>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core

Funzioni pubbliche

QFlag(int value)
QFlag(short value)
QFlag(uint value)
QFlag(ushort value)
operator int() const
operator uint() const

Descrizione dettagliata

È equivalente a un semplice int, tranne per quanto riguarda il sovraccarico delle funzioni e le conversioni di tipo. Non dovresti mai avere bisogno di utilizzare questa classe nelle tue applicazioni.

Vedi anche QFlags.

Documentazione sulle funzioni membro

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

Crea un oggetto QFlag che memorizza l'value.

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

Crea un oggetto QFlag che memorizza l'value.

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

Crea un oggetto QFlag che memorizza l’ value.

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

Crea un oggetto QFlag che memorizza l'value.

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

Restituisce il valore memorizzato dall'oggetto ` QFlag `.

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

Restituisce il valore memorizzato dall'oggetto ` QFlag `.

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