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::TypeSH_Mask提供的样式选项的类型(SH_Mask 适用于该类)。

QStyleHintReturn 及其子类和qstyleoption_cast() 内部使用该类型来确定样式选项的类型。一般来说,除非您想创建自己的QStyleHintReturn 子类和自己的样式,否则不需要担心这个问题。

另请参见 StyleOptionVersion

enum QStyleHintReturnMask::StyleOptionVersion

该枚举用于保存有关样式选项版本的信息,并为每个QStyleHintReturn 子类定义。

常量说明
QStyleHintReturnMask::Version11

版本用于QStyleHintReturn 子类在不破坏兼容性的情况下实现扩展。如果使用qstyleoption_cast() ,通常不需要检查它。

另请参阅 StyleOptionType

成员函数文档

QStyleHintReturnMask::QStyleHintReturnMask()

构造一个 QStyleHintReturnMask。成员变量初始化为默认值。

[noexcept] QStyleHintReturnMask::~QStyleHintReturnMask()

析构函数

成员变量文档

QRegion QStyleHintReturnMask::region

该变量用于保存返回QRegion

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