QFlag Class
QFlag 类是QFlags 的辅助数据类型。更多内容...
| 头文件: | #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) | |
| operator int() const | |
| operator uint() const |
另请参阅 QFlags 。
成员函数文档
[constexpr noexcept] QFlag::QFlag(int value)
创建一个 QFlag 对象,用于存储value 。
[constexpr noexcept] QFlag::QFlag(short value)
创建一个 QFlag 对象,用于存储value 。
[constexpr noexcept] QFlag::QFlag(uint value)
创建一个 QFlag 对象,用于存储value 。
[constexpr noexcept] QFlag::QFlag(ushort value)
创建一个 QFlag 对象,用于存储value 。
[constexpr noexcept] QFlag::operator int() const
返回由QFlag 对象存储的值。
[constexpr noexcept] QFlag::operator uint() const
返回由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.