MenuBar focus. Propagate hover and press events.
-
Hi,
there a menuBar property of the
ApplicationWindow
type.Assigned a
MenuBar
with with a customstyle
,itemDelegate
, where the first menu item is anImage
instance (a logo), the second is aButton
instance to fold/unfold the logo, there arise questions. Below.When hovering a menu item of the 0th level (the actual menu bar) the
styleData.selected
getstrue
, after left-clicking a menu item thestyleData.open
getstrue
.- First, the second case =>
styleData.open = true
.
After one continues moving a mouse through items they get thestyleData.open
true
and the first opened item getsfalse
. If one moves the mouse onto the first opened item it calls thestyleData.open == true
handler 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 =>
-
To put the post up...
-
@silex92 Perhaps you should post some code to try the scenario.