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 (QtQuick.Controls) is hidden by a child window

MenuBar (QtQuick.Controls) is hidden by a child window

Scheduled Pinned Locked Moved Solved QML and Qt Quick
menubar
4 Posts 2 Posters 522 Views
  • 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.
  • M Offline
    M Offline
    mnesarco
    wrote on last edited by
    #1

    Hi Friends,
    I have a qml scene which contains a Window Based Item, the problem that i have right now is that MenuBar z-order is under that item and I don't know how to fix it.

    screenshot_2.png

    The right rect is actually a Window, embedded in the scene, as you can see, the drop down menu (MenuBar) is under the Item. The expected behaviour is that Menus are on top of everything.

    the embedded window item has this flags:

    Qt.Tool | Qt.FramelessWindowHint | Qt.WindowStaysOnBottomHint
    

    I suspect this problem has no solution because probably MenuBar does not use native windows to render the menu. In my App I use QML Quick exclusively, and I don't want to mix in anything from QWidget framework.

    1 Reply Last reply
    0
    • SeDiS Offline
      SeDiS Offline
      SeDi
      wrote on last edited by
      #2

      Why does the right rect have to be a window in the first place? I'd say you are using something for a purpose it's not designed for. Do you really need a significant chunk of window-specific functionality? If it's just for the possibility of undocking you could use a loader that loads the actual code either into an item (docked) or into a window (undocked).

      1 Reply Last reply
      1
      • M Offline
        M Offline
        mnesarco
        wrote on last edited by
        #3

        It's a very special requirement. I have changed the approach and it is not a problem anymore.

        SeDiS 1 Reply Last reply
        0
        • M mnesarco

          It's a very special requirement. I have changed the approach and it is not a problem anymore.

          SeDiS Offline
          SeDiS Offline
          SeDi
          wrote on last edited by
          #4

          @mnesarco Cool. Would you mind marking the thread as solved, then?

          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