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) |
パブリック変数
| bool | mouseDown |
メンバ関数の説明
QStyleOptionMenuItemV2::QStyleOptionMenuItemV2()
QStyleOptionMenuItemV2 を構築し、メンバ変数をデフォルト値に初期化します。
QStyleOptionMenuItemV2::QStyleOptionMenuItemV2(const QStyleOptionMenuItemV2 &other)
other スタイルオプションのコピーを構築する。
メンバ変数ドキュメント
bool QStyleOptionMenuItemV2::mouseDown
マウスが押し下げられたときに真になる。
これは、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.