Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. MenuBar focus. Propagate hover and press events.
Forum Updated to NodeBB v4.3 + New Features

MenuBar focus. Propagate hover and press events.

Scheduled Pinned Locked Moved QML and Qt Quick
qmlqtquickmenu
3 Posts 2 Posters 1.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    silex92
    wrote on last edited by silex92
    #1

    Hi,

    there a menuBar property of the ApplicationWindow type.

    Assigned a MenuBar with with a custom style, itemDelegate, where the first menu item is an Image instance (a logo), the second is a Button 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 gets true, after left-clicking a menu item the styleData.open gets true.

    • First, the second case => styleData.open = true.
      After one continues moving a mouse through items they get the styleData.open true and the first opened item gets false. If one moves the mouse onto the first opened item it calls the styleData.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?
    1 Reply Last reply
    0
    • S Offline
      S Offline
      silex92
      wrote on last edited by
      #2

      To put the post up...

      p3c0P 1 Reply Last reply
      0
      • S silex92

        To put the post up...

        p3c0P Offline
        p3c0P Offline
        p3c0
        Moderators
        wrote on last edited by
        #3

        @silex92 Perhaps you should post some code to try the scenario.

        157

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved