Results 1 to 2 of 2

Thread: QStacked Widget.

  1. #1
    Join Date
    Mar 2008
    Posts
    68
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QStacked Widget.

    In Qt Designer, How to change the margin and spacing for the layout applied inside a QStacked widget? The Layout Spacing and margin options comes for all the other containers in the properties window except the Stacked Widget. And also by default irrespective the container used each layout applied in the Main Window is given a spacing of 5 and a margin of 9 how to change this?

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QStacked Widget.

    scroll down on propriety editor from dialig or widged...

    or from hand


    Qt Code:
    1. gridLayout->setHorizontalSpacing(2);
    2. gridLayout->setVerticalSpacing(2);
    3. gridLayout->setContentsMargins(2, 5, 2, 5);
    To copy to clipboard, switch view to plain text mode 

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. Custom widget
    By zorro68 in forum Qt Programming
    Replies: 7
    Last Post: 28th January 2008, 14:06
  3. Replies: 3
    Last Post: 17th October 2007, 12:52
  4. transparent background of the main widget
    By nagpalma in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2007, 17:52
  5. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 14:16

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.