Results 1 to 2 of 2

Thread: Recuce boundary space in QGroupBox/QFrame

  1. #1
    Join Date
    Sep 2009
    Posts
    49
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Recuce boundary space in QGroupBox/QFrame


    How to reduce boundary space (horizontal/vertical) in QGroupBox?

    The button are added in a horizontal layout and then layout has been set for GroupBox.
    Qt Code:
    1. self.horizontalGroupBox.setLayout(layout)
    To copy to clipboard, switch view to plain text mode 

    This is also relevant for QFrame. It also takes some extra space as visible in the image.
    Prashant


    qt-sdk-win-opensource-2009.03.1.exe
    Python 2.6.3
    PyQt-Py2.6-gpl-4.6-1
    Win XP, 32 Bit

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Recuce boundary space in QGroupBox/QFrame

    QLayout::setContentsMargins() and QWidget::setContentsMargins().

    And please attach images here at the forum that your post stays consistent.

Similar Threads

  1. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23: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.