QStyleHintReturnMask Class
QStyleHintReturnMask 类提供返回QRegion... 更多...
头文件: | #include <QStyleHintReturnMask> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
继承: | QStyleHintReturn |
公共类型
enum | StyleOptionType { Type } |
enum | StyleOptionVersion { Version } |
公共函数
公共变量
QRegion | region |
成员类型文档
enum QStyleHintReturnMask::StyleOptionType
该枚举用于保存有关样式选项类型的信息,并为每个QStyleHintReturn 子类定义。
常量 | 值 | 描述 |
---|---|---|
QStyleHintReturnMask::Type | SH_Mask | 提供的样式选项的类型(SH_Mask 适用于该类)。 |
QStyleHintReturn 及其子类和qstyleoption_cast() 内部使用该类型来确定样式选项的类型。一般来说,除非您想创建自己的QStyleHintReturn 子类和自己的样式,否则不需要担心这个问题。
另请参见 StyleOptionVersion 。
enum QStyleHintReturnMask::StyleOptionVersion
该枚举用于保存有关样式选项版本的信息,并为每个QStyleHintReturn 子类定义。
常量 | 值 | 说明 |
---|---|---|
QStyleHintReturnMask::Version | 1 | 1 |
版本用于QStyleHintReturn 子类在不破坏兼容性的情况下实现扩展。如果使用qstyleoption_cast() ,通常不需要检查它。
另请参阅 StyleOptionType 。
© 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.