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. Another dock widget problem

Another dock widget problem

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

    I'm receiving complaints from users that when they make the main window (QMainWindow) of my application smaller then the dock widgets reduce in size until they reach their minimum size, but when they increase the main window size again that the dock widgets don't increase in size from the size they were reduced to (e.g. minimum size).

    @Axel-Spoerl Am I right in thinking that this is should be classed as "Working as designed"?

    Axel SpoerlA 1 Reply Last reply
    0
    • PerdrixP Perdrix

      I'm receiving complaints from users that when they make the main window (QMainWindow) of my application smaller then the dock widgets reduce in size until they reach their minimum size, but when they increase the main window size again that the dock widgets don't increase in size from the size they were reduced to (e.g. minimum size).

      @Axel-Spoerl Am I right in thinking that this is should be classed as "Working as designed"?

      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by Axel Spoerl
      #2

      @Perdrix
      That's a know limitation.
      What happens is, that the main window's size gets smaller than the minimum required for the dock areas. In that case, the dock widgets would shrink to a point, where their window handles become inaccessible. That's why they are programmatically set to a minimum size, instead of further shrinking. The programmatic setting of their size causes them to remember the minimum size.

      I'd nevertheless call it an almost certainly useless corner case. Why would you shrink the main window to such an extent?

      => The behavior is expected, albeit not ideal.

      Software Engineer
      The Qt Company, Oslo

      PerdrixP 1 Reply Last reply
      1
      • Axel SpoerlA Axel Spoerl

        @Perdrix
        That's a know limitation.
        What happens is, that the main window's size gets smaller than the minimum required for the dock areas. In that case, the dock widgets would shrink to a point, where their window handles become inaccessible. That's why they are programmatically set to a minimum size, instead of further shrinking. The programmatic setting of their size causes them to remember the minimum size.

        I'd nevertheless call it an almost certainly useless corner case. Why would you shrink the main window to such an extent?

        => The behavior is expected, albeit not ideal.

        PerdrixP Offline
        PerdrixP Offline
        Perdrix
        wrote on last edited by Perdrix
        #3

        @Axel-Spoerl Thank you!

        The complaint isn't that they shrink until they get to minimum size, but they don't get bigger again when the window size is increased.

        Personally I think that is just fine as I don't think you could easily write code to increase them in a way that would please everyone...

        Axel SpoerlA 1 Reply Last reply
        0
        • PerdrixP Perdrix

          @Axel-Spoerl Thank you!

          The complaint isn't that they shrink until they get to minimum size, but they don't get bigger again when the window size is increased.

          Personally I think that is just fine as I don't think you could easily write code to increase them in a way that would please everyone...

          Axel SpoerlA Offline
          Axel SpoerlA Offline
          Axel Spoerl
          Moderators
          wrote on last edited by
          #4

          @Perdrix
          Agree! Pleasing everybody can make things messy at times ;-)

          Software Engineer
          The Qt Company, Oslo

          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