QStyleOptionFocusRect Class
QStyleOptionFocusRect クラスは、QStyle でフォーカス矩形を描画するためのパラメータを記述するために使用されます。詳細...
ヘッダー | #include <QStyleOptionFocusRect> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
継承: | QStyleOption |
パブリックな型
enum | StyleOptionType { Type } |
enum | StyleOptionVersion { Version } |
パブリック関数
QStyleOptionFocusRect() | |
QStyleOptionFocusRect(const QStyleOptionFocusRect &other) |
パブリック変数
QColor | backgroundColor |
詳細説明
パフォーマンス上の理由から、メンバ関数はほとんどなく、メンバ変数へのアクセスは直接(つまり、.
または->
演算子を使用)です。これにより、構造体を簡単に使用することができ、これらは単にスタイル関数で使用されるパラメータであることが強調されます。
QStyleOptionも参照してください 。
メンバ型ドキュメント
enum QStyleOptionFocusRect::StyleOptionType
この列挙型は、スタイル・オプションのタイプに関する情報を保持するために使われ、QStyleOption のサブクラスごとに定義される。
定数 | 値 | 説明 |
---|---|---|
QStyleOptionFocusRect::Type | SO_FocusRect | 提供されるスタイル・オプションの型 ( このクラスではSO_FocusRect )。 |
この型は、QStyleOption 、そのサブクラス、およびqstyleoption_cast() によって内部的に使用され、スタイル・オプションの型を決定します。一般に、独自のQStyleOption サブクラスと独自のスタイルを作成するのでなければ、これを気にする必要はありません。
StyleOptionVersionも参照してください 。
enum QStyleOptionFocusRect::StyleOptionVersion
この列挙型は、スタイルオプションのバージョンに関する情報を保持するために使用され、QStyleOption のサブクラスごとに定義されます。
定数 | 値 | 説明 |
---|---|---|
QStyleOptionFocusRect::Version | 1 | 1 |
このバージョンは、QStyleOption サブクラスが互換性を壊すことなく拡張を実装するために使用されます。qstyleoption_cast() を使用する場合、通常は確認する必要はありません。
StyleOptionTypeも参照 。
メンバ関数ドキュメント
QStyleOptionFocusRect::QStyleOptionFocusRect()
QStyleOptionFocusRect を構築し、メンバ変数をデフォルト値に初期化します。
QStyleOptionFocusRect::QStyleOptionFocusRect(const QStyleOptionFocusRect &other)
other スタイルオプションのコピーを構築する。
メンバ変数ドキュメント
QColor QStyleOptionFocusRect::backgroundColor
この変数は、フォーカスの矩形が描画される背景色を保持する。
デフォルト値はRGB値(0, 0, 0)の無効な色です。無効な色とは、基礎となるウィンドウシステムに対して適切に設定されていない色のことです。
© 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.