QFlag Class
The QFlag class is a helper data type for QFlags. More...
Header: | #include <QFlag> |
qmake: | QT += core |
Public Functions
QFlag(ushort value) | |
QFlag(short value) | |
QFlag(uint value) | |
QFlag(int value) | |
int | operator int() const |
uint | operator uint() const |
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 QFlags.
Member Function Documentation
QFlag::QFlag(ushort value)
Constructs a QFlag object that stores the value.
This function was introduced in Qt 5.3.
QFlag::QFlag(short value)
Constructs a QFlag object that stores the value.
This function was introduced in Qt 5.3.
QFlag::QFlag(uint value)
Constructs a QFlag object that stores the value.
This function was introduced in Qt 5.3.
QFlag::QFlag(int value)
Constructs a QFlag object that stores the value.
int QFlag::operator int() const
Returns the value stored by the QFlag object.
uint QFlag::operator uint() const
Returns the value stored by the QFlag object.
This function was introduced in Qt 5.3.
© 2020 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.