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)

パブリック変数

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 スタイルオプションのコピーを構築する。

メンバ変数ドキュメント

bool QStyleOptionRubberBand::opaque

この変数は、輪ゴムを不透明なスタイルで描画する必要があるかどうかを保持する。

デフォルト値はtrueである。

QRubberBand::Shape QStyleOptionRubberBand::shape

この変数は輪ゴムの形状を保持する。

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

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