Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. window geometry
    Log in to post

    • UNSOLVED How to position windows in the bottom right of the screen?
      General and Desktop • widget window screen alignment window geometry • • dannymozzer  

      9
      0
      Votes
      9
      Posts
      783
      Views

      Use QScreen::availableGeometry. It provides the geometry excluding window manager reserved areas.
    • UNSOLVED Too many widgets breaks window management
      General and Desktop • qwidget qframe qsplitter window geometry • • Eric Singer  

      7
      0
      Votes
      7
      Posts
      286
      Views

      @Eric-Singer Because my suggestion is not to limit the size of the parent but rather to limit what the layout reports as the minimum size required. minimumSize() returns the minimum amount of space the widget needs to provide so that the layout can fit all the widgets inside it. maximumSize() is the size beyond which the layout can't reasonable grow the widgets inside. Maximum size is not useful for this case. Your problem is that the parent widget grows too much and it grows because the minimum size of the layout grows i.e. the minimum amount of space required to lay out the widgets inside grows. If you return a fake limit, one that is smaller than the sum of all the widgets inside, the parent will be able to keep its size despite all the children in the layout not fitting (visually they will be cropped). You could, for example, return the minimum of the base implementation's value that calculates it based on the content size and some constant value of yours, beyond which you don't want to grow. To be honest that's pretty much what a scroll area does and I think the suggestion given by @SGaist is a better one as it already does that work for you.
    • UNSOLVED Getting window geometry for all desktop windows
      General and Desktop • global window geometry • • muldjord  

      3
      0
      Votes
      3
      Posts
      671
      Views

      @raven-worx I will look into platform specific code. Thank you.
    • SOLVED Broken QWidget window states and geometries
      General and Desktop • qwidget bug fullscreen window geometry maximized • • Wilk  

      4
      0
      Votes
      4
      Posts
      2232
      Views

      @Wilk said: The reason that it did not work with QMainWindow or QWidget is that those classes does not implement fullScreen as full featured property - it can not be set with setFullScreen() slot. I see, thanks for the precision. @Wilk said: Thanks alot No problem, I hope your bug report will be helpful for other people.