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 。
© 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.