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. Docked widget size on maximise
Qt 6.11 is out! See what's new in the release blog

Docked widget size on maximise

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

    I have a QDockedWidget that contains a QWidget. The QWidget is setup to be 640x480 in the designer UI file. When i maximize it from the dock the window size is incorrect. It seems that the QDockedWidget sets the size & the width an height of my QWidget are wrong. I have tried to use the sizeHint() method to return 640x480 but this does not work either.

    Surely there must be a way to set the size of the widget that is being maximized from a QDockedWidget?

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

      Hi,

      Did you try with setMaximumSize() ?

      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

      • Login

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