QStyleHintReturn and its subclasses are used to pass information from a style back to the querying widget. This is most useful when the return value from does not provide enough detail; for example, when a mask is to be returned.
- class PySide6.QtWidgets.QStyleHintReturn([version=QStyleOption.Version[, type=SH_Default]])¶
version – int
type – int
QStyleHintReturn with version
version and type
The version has no special meaning for
QStyleHintReturn ; it can be used by subclasses to distinguish between different version of the same hint type.
This enum is used to hold information about the type of the style option, and is defined for each
The type of style option provided (
SH_Defaultfor this class).
The type is used internally by
QStyleHintReturn , its subclasses, and to determine the type of style option. In general you do not need to worry about this unless you want to create your own
QStyleHintReturn subclass and your own styles.
This enum is used to hold information about the version of the style option, and is defined for each
The version is used by
QStyleHintReturn subclasses to implement extensions without breaking compatibility. If you use , you normally do not need to check it.
© 2021 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.