QFlag Class
La clase QFlag es un tipo de datos de ayuda para QFlags. Más...
| Cabecera: | #include <QFlag> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Core)target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake: | QT += core |
Funciones públicas
| QFlag(int value) | |
| QFlag(short value) | |
| QFlag(uint value) | |
| QFlag(ushort value) | |
| operator int() const | |
| operator uint() const |
Descripción detallada
Es equivalente a un simple int, excepto con respecto a la sobrecarga de funciones y conversiones de tipo. Nunca debería necesitar utilizar esta clase en sus aplicaciones.
Véase también QFlags.
Documentación de las funciones miembro
[constexpr noexcept] QFlag::QFlag(int value)
Construye un objeto QFlag que almacena el value.
[constexpr noexcept] QFlag::QFlag(short value)
Construye un objeto QFlag que almacena el value.
[constexpr noexcept] QFlag::QFlag(uint value)
Construye un objeto QFlag que almacena el value.
[constexpr noexcept] QFlag::QFlag(ushort value)
Construye un objeto QFlag que almacena el value.
[constexpr noexcept] QFlag::operator int() const
Devuelve el valor almacenado por el objeto QFlag.
[constexpr noexcept] QFlag::operator uint() const
Devuelve el valor almacenado por el objeto 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.