Results 1 to 4 of 4

Thread: Qt designer - how to change splitter sizes ?

  1. #1
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt designer - how to change splitter sizes ?

    I will appreciate the helping hand to show how to change the width of a splitter parts in Qt designer. I'd like to be able to drag the left or right size of the splitter to change design area.

    Thanks.

  2. #2
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt designer - how to change splitter sizes ?

    up. (Am I the only one who is using splitters in Qt designer and does not know how to change the size of individual panels?)

  3. #3
    Join Date
    Feb 2011
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Qt designer - how to change splitter sizes ?

    The QSplitter are not live QWidgets in QtCreator unfortunately.
    If your QSplitter contains two widgets, you can set maximumSize and sizePolicy for each widget and the QSplitter will resize accordingly. I didn't find a way to do the same things with its QLayout chidren.

  4. #4
    Join Date
    Aug 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt designer - how to change splitter sizes ?

    Alternatively, you can break the layout that you made, resize the widgets by hand with a proportion that matches what you want to get ultimately (if want to have a splitter set in a ~1/4, 3/4 ratio, you can resize a widget to ~1cm and the other to ~3cm), and then re-create the layout/splitter and container layout. This will create the splitter and expand it in its container layout keeping the proportion that you defined.

    Cheers,
    Cedric

Similar Threads

  1. Replies: 0
    Last Post: 10th October 2010, 14:01
  2. Replies: 0
    Last Post: 3rd February 2009, 14:16
  3. Replies: 1
    Last Post: 12th October 2008, 20:02
  4. Replies: 2
    Last Post: 20th April 2007, 16:36
  5. Replies: 2
    Last Post: 7th April 2006, 14:31

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.