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. QDockWidget oddness
Forum Updated to NodeBB v4.3 + New Features

QDockWidget oddness

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 449 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by
    #1

    I had reports of problems with my application on systems with smallish displays, so I installed it on an old laptop with 1280*800 screen.

    If I open the application and maximise it I see:

    Screen shot 1.png

    If I then try to drag the sizing handle of the lower dock widget upward, it immediately changes to this:

    Screen shot 2.png

    This is the same on both 6.5.1 and 6.8.0

    I'm prepared for this to be my error but for the life of me I can't see what's wrong with my .ui files.

    Another oddness is that Processing group box is in the left panel (dock widget) is overlaying the one above it, and I can't provoke that on my development system.

    David

    1 Reply Last reply
    0
    • PerdrixP Offline
      PerdrixP Offline
      Perdrix
      wrote on last edited by Perdrix
      #2

      I have worked out what is happening and it isn't pretty. The main client area of the application frame window is a QStackedWIdget. That holds the client area that you see below which has an effective minimum height of about 350 pixels. It also has another dialog whose minimum size is almost 700 pixels high and that's causing all the problems. Even though it is hidden by the stacked widget, it forces the size of the stacked widget.

      Now to work out a way to make it smaller than it currently is when it isn't being shown (maybe set the minimum size of the sub-windows to 0 when it's not visible.

      image.png

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

        Hi,

        You might want to use a QScrollArea to ensure that the real size of the your client area widgets do not break your application design.

        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
        • PerdrixP Offline
          PerdrixP Offline
          Perdrix
          wrote on last edited by
          #4

          @SGaist Thank you, yes I did consider that when writing my fix for the problem. In this case it was simple to reduce the minimum size of the other client widget to 300 pixels lower than it previously was. At that point sanity broke out :)

          David

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

            I'd keep the scroll area in mind since you may have at some point another bigger widget that might break your design again.

            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
            • PerdrixP Offline
              PerdrixP Offline
              Perdrix
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0
              • PerdrixP Offline
                PerdrixP Offline
                Perdrix
                wrote on last edited by Perdrix
                #7

                I'll open a new thread about QScrollArea problems

                1 Reply Last reply
                0
                • PerdrixP Perdrix referenced this topic on

                • Login

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