Results 1 to 2 of 2

Thread: SizePolicy Help

  1. #1
    Join Date
    Dec 2014
    Posts
    49
    Thanks
    6
    Thanked 3 Times in 3 Posts
    Qt products
    Qt5 PyQt3 PyQt4
    Platforms
    Windows

    Default SizePolicy Help

    I am trying to layout a DockWidget in the following manner

    -QFrame (Max Height of 60px)
    -QWidget (Max Height of 100px)
    -QToolBox (Variable height depending on the current page that is being viewed)

    however, when i do it, the QToolBox takes up all the space at the bottom, even though the individual pages only have one or two line edits in them. So what i would like is to have the QToolBox only show the necessary space.

    How should my size policies be set

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: SizePolicy Help

    Neither QFrame nor QWidget have pages, your decription is missing some important part.

    Cheers,
    _

Similar Threads

  1. Replies: 2
    Last Post: 14th February 2012, 07:19
  2. QTabWidget Expanding sizepolicy
    By Zweistein in forum Qt Programming
    Replies: 0
    Last Post: 25th October 2010, 14:34
  3. Nested Layouts and sizePolicy
    By pagapov in forum Newbie
    Replies: 13
    Last Post: 24th October 2010, 09:29
  4. layouts, sizePolicy, sizeHint,
    By Kronen in forum Newbie
    Replies: 2
    Last Post: 5th November 2009, 17:43
  5. The use of SizePolicy
    By Placido Currò in forum Newbie
    Replies: 2
    Last Post: 9th April 2009, 22:10

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.