Results 1 to 3 of 3

Thread: Add space between Qgroupboxes

  1. #1
    Join Date
    Feb 2007
    Posts
    39
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Add space between Qgroupboxes

    I've a QVBoxLayout and inside it i've a few Qgroupboxes which are displayed correctly, but
    i wanted to increase the space(margin) between each Qgroupbox, as they're now too close. After a look at QT assistant i couldn't find the right function to do that kind of thing, it will be related to QVBoxLayout or to Qgroupbox? any tips about this? thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Add space between Qgroupboxes

    Maybe addStretch() will do the job? If not, then maybe you're after setSpacing()?

  3. #3
    Join Date
    Feb 2007
    Posts
    39
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Add space between Qgroupboxes

    Quote Originally Posted by wysota View Post
    Maybe addStretch() will do the job? If not, then maybe you're after setSpacing()?
    Thanks for the tips, those didn't work for me but a similar one addSpacing() did the job

Similar Threads

  1. expanding to the max. available space in a QStatusBar
    By momesana in forum Qt Programming
    Replies: 1
    Last Post: 11th November 2006, 20:02
  2. space between lines in QTextEdit
    By Lele in forum Qt Programming
    Replies: 2
    Last Post: 19th September 2006, 13:05
  3. Replies: 3
    Last Post: 27th July 2006, 12:48
  4. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11
  5. QTableWidget click in empty space results in error?
    By Giel Peters in forum Qt Programming
    Replies: 4
    Last Post: 21st January 2006, 00:07

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.