QFlag Class
头文件: | #include <QFlag> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
公共函数
QFlag(int value) | |
QFlag(short value) | |
QFlag(uint value) | |
QFlag(ushort value) | |
int | operator int() const |
uint | operator uint() const |
另请参见 QFlags 。
成员函数文档
[constexpr noexcept]
QFlag::QFlag(int value)
构造一个存储value 的 QFlag 对象。
[constexpr noexcept]
QFlag::QFlag(short value)
构造一个存储value 的 QFlag 对象。
[constexpr noexcept]
QFlag::QFlag(uint value)
构造一个存储value 的 QFlag 对象。
[constexpr noexcept]
QFlag::QFlag(ushort value)
构造一个存储value 的 QFlag 对象。
[constexpr noexcept]
int QFlag::operator int() const
返回QFlag 对象存储的值。
[constexpr noexcept]
uint QFlag::operator uint() const
返回QFlag 对象存储的值。
© 2025 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.