QStyleHintReturnVariant Class

QStyleHintReturnVariant クラスは、QVariant を返すスタイル・ヒントを提供します

ヘッダー #include <QStyleHintReturnVariant>
CMake: find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
qmake: QT += widgets
継承: QStyleHintReturn

パブリックな型

enum StyleOptionType { Type }
enum StyleOptionVersion { Version }

パブリック関数

パブリック変数

QVariant variant

詳細説明

メンバー型ドキュメント

enum QStyleHintReturnVariant::StyleOptionType

この列挙型は、スタイル・オプションのタイプに関する情報を保持するために使われ、QStyleHintReturn のサブクラスごとに定義される。

定数説明
QStyleHintReturnVariant::TypeSH_Variant提供されるスタイル・オプションの型 ( このクラスではSH_Variant )。

この型は、QStyleHintReturn 、そのサブクラス、およびqstyleoption_cast() によって内部的に使用され、スタイル・オプションの型を決定します。一般に、独自のQStyleHintReturn サブクラスと独自のスタイルを作成するのでなければ、これを気にする必要はありません。

StyleOptionVersionも参照してください

enum QStyleHintReturnVariant::StyleOptionVersion

この列挙型は、スタイルオプションのバージョンに関する情報を保持するために使用され、QStyleHintReturn のサブクラスごとに定義されます。

定数説明
QStyleHintReturnVariant::Version11

このバージョンは、QStyleHintReturn サブクラスが互換性を壊すことなく拡張を実装するために使用されます。qstyleoption_cast() を使用する場合、通常は確認する必要はありません。

StyleOptionTypeも参照

メンバ関数ドキュメント

QStyleHintReturnVariant::QStyleHintReturnVariant()

QStyleHintReturnVariant を構築します。メンバ変数はデフォルト値に初期化されます。

[noexcept] QStyleHintReturnVariant::~QStyleHintReturnVariant()

デストラクタ

メンバ変数ドキュメント

QVariant QStyleHintReturnVariant::variant

を返すスタイルヒントのバリアントを保持します。QVariant

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