Results 1 to 2 of 2

Thread: Problem with spacing

  1. #1
    Join Date
    Jan 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Problem with spacing

    Hello all!

    My problem is that spacings are summed up if I interleave several widgets.

    In my example I have added a QStackedWidget together with several buttons into a MainWindow. They are layouted using a GridLayout. If I do this the distance between the border of the StackedWidget and the window Margin is already several pixels (might be about 10).
    If i now add e.g. a ListView and two Buttons into the StackedWidget, QT Designer adds another spacer of about 10 pixels between the border of StackedWidget and the widgets it contains. This sums up to a total boarder of 20 pixels!

    Why is there no setting in the Property Editor to change this? I found a setting under Form > Form Settings... (Layout Default, Layout Function) but changing it does not affect anything!

    Thank you for your help!

    ali

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Problem with spacing

    Select a widget which has layout installed. Then look the property editor for a group called "Layout".
    J-P Nurmi

Similar Threads

  1. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  2. Spanned Item Spacing on Empty Columns
    By giverson in forum Qt Programming
    Replies: 1
    Last Post: 19th March 2007, 22:10
  3. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 12:54
  4. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 14:08
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.