QFlag Class▲
-
Header: QFlag
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
-
qmake: QT += core
Detailed Description▲
It is equivalent to a plain int, except with respect to function overloading and type conversions. You should never need to use this class in your applications.
See Also▲
See also QFlags
Member Function Documentation▲
[constexpr] QFlag::QFlag(int value)▲
Constructs a QFlag object that stores the value.
[default, since 5.3] QFlag::QFlag(uint value)▲
Constructs a QFlag object that stores the value.
This function was introduced in Qt 5.3.
[default, since 5.3] QFlag::QFlag(short value)▲
Constructs a QFlag object that stores the value.
This function was introduced in Qt 5.3.
[default, since 5.3] QFlag::QFlag(ushort value)▲
Constructs a QFlag object that stores the value.
This function was introduced in Qt 5.3.
[constexpr] int QFlag::operator int() const▲
Returns the value stored by the QFlag object.