QFlag Class
The QFlag class is a helper data type for QFlags. 更多...
头文件: | #include <QFlag> |
qmake: | QT += core |
公有函数
QFlag(int value) | |
QFlag(uint value) | |
QFlag(short value) | |
QFlag(ushort value) | |
operator int() const | |
operator uint() const |
详细描述
The QFlag class is a helper data type for QFlags.
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.
参见 QFlags.
成员函数
QFlag::QFlag(int value)
Constructs a QFlag object that stores the given value.
QFlag::QFlag(uint value)
Constructs a QFlag object that stores the given value.
This function was introduced in Qt 5.3.
QFlag::QFlag(short value)
Constructs a QFlag object that stores the given value.
This function was introduced in Qt 5.3.
QFlag::QFlag(ushort value)
Constructs a QFlag object that stores the given value.
This function was introduced in Qt 5.3.
QFlag::operator int() const
Returns the value stored by the QFlag object.
QFlag::operator uint() const
Returns the value stored by the QFlag object.
This function was introduced in Qt 5.3.