Results 1 to 2 of 2

Thread: QDockWindow resizing according to QMainWindow size

  1. #1
    Join Date
    Jan 2012
    Posts
    3
    Qt products
    Qt3 Qt4

    Post QDockWindow resizing according to QMainWindow size

    Hi,

    I have a MainWindow (subclass of QMainWindow) and it has a bottom QDockWindow. My problem is, when i decrease the MainWindow height manually, it first decreases central widget's height and when it reachs the minimum height of the central widget then it should start to decrease the bottom QDockWindow height (usually my bottom dockwindow has the larger height than its minimum height. so it can shrink). But it doesn't. why ? how can i fix that ? thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QDockWindow resizing according to QMainWindow size

    What is the size policy and min/max sizes of your dock window?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 1
    Last Post: 10th January 2012, 14:41
  2. Resizing QML and QMainWindow
    By hungarycoder in forum Qt Quick
    Replies: 3
    Last Post: 19th February 2011, 18:12
  3. unwanted QDockWidget resizing after QMainWindow::tabify()
    By alpinista in forum Qt Programming
    Replies: 0
    Last Post: 12th January 2011, 06:56
  4. Replies: 2
    Last Post: 23rd March 2009, 17:26
  5. Prevent from resizing a QMainWindow
    By Flier in forum Qt Tools
    Replies: 5
    Last Post: 14th April 2006, 17:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.