Results 1 to 4 of 4

Thread: Reduce blank spaces between widgets in QSplitter layout

  1. #1
    Join Date
    Sep 2008
    Posts
    17
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Reduce blank spaces between widgets in QSplitter layout

    I use QSplitter to layout widgets. It seems that blank space between neighboring widgets is a litter bigger. How to set QSplitter or other related parameters to reduce this blank spacing? Thank you very much!

  2. #2
    Join Date
    Sep 2008
    Posts
    17
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Reduce blank spaces between widgets in QSplitter layout

    It is still a problem for me. I hope to get any information from you! Thank you very much!

  3. #3
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Reduce blank spaces between widgets in QSplitter layout

    Is this the function you're looking for?
    http://doc.qt.nokia.com/4.7/qwidget....ontentsMargins

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Reduce blank spaces between widgets in QSplitter layout

    Also QLayout::spacing() and QLayout::setContentsMargins() and the equivalents in sub-classes.

Similar Threads

  1. How to fill a QFrame space in QSplitter layout
    By henryjoye in forum Qt Programming
    Replies: 2
    Last Post: 12th October 2010, 05:18
  2. Replies: 1
    Last Post: 7th April 2008, 15:12
  3. Filtering blank spaces while saving file names
    By jyoti kumar in forum Qt Programming
    Replies: 1
    Last Post: 3rd September 2007, 06:53
  4. QSplitter - Remove Widgets?
    By durbrak in forum Qt Programming
    Replies: 1
    Last Post: 10th December 2006, 12:17
  5. Remove widgets from a QSplitter
    By blukske in forum Qt Programming
    Replies: 1
    Last Post: 14th July 2006, 10:38

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.