MenuBar focus. Propagate hover and press events.
QML and Qt Quick
3
Posts
2
Posters
1.5k
Views
2
Watching
-
Hi,
there a menuBar property of the
ApplicationWindowtype.Assigned a
MenuBarwith with a customstyle,itemDelegate, where the first menu item is anImageinstance (a logo), the second is aButtoninstance to fold/unfold the logo, there arise questions. Below.When hovering a menu item of the 0th level (the actual menu bar) the
styleData.selectedgetstrue, after left-clicking a menu item thestyleData.opengetstrue.- First, the second case =>
styleData.open = true.
After one continues moving a mouse through items they get thestyleData.opentrueand the first opened item getsfalse. If one moves the mouse onto the first opened item it calls thestyleData.open == truehandler again.
How to remove this effect in the
menuBar?- Second, the
styleData.selected = true.
The button does not get hovered, clicked. How to propagate the events to the menu bar items?
- First, the second case =>