Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to raise one undocked dockable widget above another?
Qt 6.11 is out! See what's new in the release blog

How to raise one undocked dockable widget above another?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 755 Views 3 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.
  • V Offline
    V Offline
    Vadi2
    wrote on last edited by
    #1

    If the user undocks dockable widget and physically places one above another, how can I programatically raise one to be above another?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      ambershark
      wrote on last edited by
      #2

      I haven't tested to be sure, but QWidget::raise() should do it.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      2
      • V Offline
        V Offline
        Vadi2
        wrote on last edited by
        #3

        Unfortunately, no. I tried both raise() and activateWindow() without success.

        A 1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi
          Did you try lower() on the "other" one ?
          or
          http://doc.qt.io/qt-5/qwidget.html#stackUnder

          1 Reply Last reply
          1
          • V Vadi2

            Unfortunately, no. I tried both raise() and activateWindow() without success.

            A Offline
            A Offline
            ambershark
            wrote on last edited by ambershark
            #5

            @Vadi2 Hmm, could you share some code to create the dock windows that I can test and try some things on? Doesn't have to be the actual code, just something I could use to duplicate the issue on my system.

            My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

            1 Reply Last reply
            1

            • Login

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