このページでは

QStyleOptionRubberBand Class

QStyleOptionRubberBand クラスは、ラバーバンドを描画するために必要なパラメータを記述するために使用されます。詳細...

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

パブリック型

enum StyleOptionType { Type }
enum StyleOptionVersion { Version }

パブリック関数

QStyleOptionRubberBand()
QStyleOptionRubberBand(const QStyleOptionRubberBand &other)
QStyleOptionRubberBand &operator=(const QStyleOptionRubberBand &)

パブリック変数

bool opaque
QRubberBand::Shape shape

詳細な説明

QStyleOptionRubberBand には、QStyle 関数がQRubberBand を描画するために必要なすべての情報が含まれています。

パフォーマンス上の理由から、メンバ関数は少なく、メンバ変数へのアクセスは直接行われます(つまり、. または-> 演算子を使用します)。これにより、構造体の使用が簡単になり、これらが単にスタイル関数によって使用されるパラメータであるということが強調されます。

QStyleOption およびQRubberBandも参照してください 。

メンバ型のドキュメント

enum QStyleOptionRubberBand::StyleOptionType

この列挙型は、スタイルオプションのタイプに関する情報を保持するために使用され、QStyleOption の各サブクラスに対して定義されています。

定数定数値説明
QStyleOptionRubberBand::TypeSO_RubberBand指定されたスタイルオプションのタイプ(このクラスでは `SO_RubberBand `)。

この型は、QStyleOption 、そのサブクラス、およびqstyleoption_cast() によって、スタイルオプションの型を判別するために内部的に使用されます。一般的に、独自のQStyleOption サブクラスや独自のスタイルを作成する場合を除き、この点について気にする必要はありません。

StyleOptionVersionも参照してください 。

enum QStyleOptionRubberBand::StyleOptionVersion

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

定数定数値説明
QStyleOptionRubberBand::Version11

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

StyleOptionTypeも参照してください 。

メンバ関数のドキュメント

QStyleOptionRubberBand::QStyleOptionRubberBand()

QStyleOptionRubberBand を作成し、メンバー変数をデフォルト値に初期化します。

QStyleOptionRubberBand::QStyleOptionRubberBand(const QStyleOptionRubberBand &other)

other スタイルオプションのコピーを作成します。

[noexcept default] QStyleOptionRubberBand &QStyleOptionRubberBand::operator=(const QStyleOptionRubberBand &)

other をこのQStyleOptionRubberBand インスタンスにコピー代入します。

メンバ変数のドキュメント

bool QStyleOptionRubberBand::opaque

この変数は、ラバーバンドを不透明なスタイルで描画する必要があるかどうかを指定します

デフォルト値は true です。

QRubberBand::Shape QStyleOptionRubberBand::shape

この変数には、輪ゴムの形状が格納されます

デフォルトの形状はQRubberBand::Line です。

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