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. Weird position of QDockWidget across from QTabWidget
Forum Updated to NodeBB v4.3 + New Features

Weird position of QDockWidget across from QTabWidget

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 2.1k Views 1 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.
  • K Offline
    K Offline
    kevina67
    wrote on last edited by
    #1

    Hello folks,

    I designed a QMainWindow in Qt designer. This window have a QDockWidget and a QTabWidget. But the two widget aren't at the same "height". The QDockWidget doesn't go as deep as the QTabWidget. This behavior is really weird and I have no clue about its origin. Does anybody can help.

    Thanks in advance.

    !http://i.imgur.com/0NXFVTW.png(Wrong align)!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean the content of the dock widget is not at the same height as the QTabWidget ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kevina67
        wrote on last edited by
        #3

        Exactly. The bottom of the QDOckWidget is slighty highter than the bottom of the QTabWidget. I don't know if its normal but it looks weird to the user.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          AFAIK this depends partly on the widget you set on the dock widget (i.e. margin/spacing of layouts etc...)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kevina67
            wrote on last edited by
            #5

            For the moment, the QDockWidget contains a QListView and the QTabWidget contains QPlainTextEdit. Isn't there a way to align the bottom of this two widgets ?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You could try to play with the margin/spacing of the layout of QDockWidget

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kevina67
                wrote on last edited by
                #7

                I wish I could have use something easy to solve this issue. Thanks SGaist, I'll try to play with the margins and so on.

                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