QStyleOptionMenuItemV2 Class
QStyleOptionMenuItemV2 クラスは、QStyleOptionMenuItem に新しいメンバを追加して機能を強化しています。詳細...
| ヘッダー: | #include <QStyleOptionMenuItemV2> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| 以下のように: | Qt 6.11 |
| 継承元: | QStyleOptionMenuItem |
パブリック関数
| QStyleOptionMenuItemV2() | |
| QStyleOptionMenuItemV2(const QStyleOptionMenuItemV2 &other) | |
| QStyleOptionMenuItemV2 & | operator=(const QStyleOptionMenuItemV2 &) |
パブリック変数
| bool | mouseDown |
メンバー関数のドキュメント
QStyleOptionMenuItemV2::QStyleOptionMenuItemV2()
QStyleOptionMenuItemV2 を作成し、メンバー変数をデフォルト値で初期化します。
QStyleOptionMenuItemV2::QStyleOptionMenuItemV2(const QStyleOptionMenuItemV2 &other)
other スタイルオプションのコピーを作成します。
[noexcept default] QStyleOptionMenuItemV2 &QStyleOptionMenuItemV2::operator=(const QStyleOptionMenuItemV2 &)
other をこのQStyleOptionMenuItemV2 インスタンスにコピー代入します。
メンバ変数のドキュメント
bool QStyleOptionMenuItemV2::mouseDown
マウスが押されているときにtrueとなる。
QStyle::State_Sunken が設定されている場合、ボタンが押されている状態と押し込まれた状態の区別がつかないため、これが必要です。また、メニューが開いているとき(つまりポップアップメニューが表示されているとき)には、QStyle::State_Sunken も設定されます。
© 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.