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) | |
| QStyleOptionFocusRect & | operator=(const QStyleOptionFocusRect &) |
パブリック変数
| 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 スタイルオプションのコピーを作成します。
[noexcept default] QStyleOptionFocusRect &QStyleOptionFocusRect::operator=(const QStyleOptionFocusRect &)
other をこのQStyleOptionFocusRect インスタンスにコピー代入します。
メンバ変数のドキュメント
QColor QStyleOptionFocusRect::backgroundColor
この変数には、フォーカス矩形が描画される背景色が格納されます
デフォルト値は、RGB値が(0, 0, 0)の無効な色です。無効な色とは、基盤となるウィンドウシステムで適切に設定されていない色のことです。
© 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.