Results 1 to 7 of 7

Thread: How to prevent button from expanding to fill layout

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Sep 2009
    Posts
    41
    Thanks
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: How to prevent button from expanding to fill layout

    "setToolButtonStyle" does the trick! Thanks a lot!

    Another solution I found is to create an icon image for the button and get rid of the text altogether. Then the buttons resize to fit the icon.
    Last edited by Ishmael; 24th May 2010 at 19:33.

Similar Threads

  1. How to expanding the layout?
    By Kode.Cooper in forum Qt Programming
    Replies: 2
    Last Post: 8th January 2010, 14:24
  2. Replies: 1
    Last Post: 3rd August 2009, 21:01
  3. Replies: 6
    Last Post: 18th December 2008, 21:16
  4. Can I insert expanding layout in Qt Designer?
    By zolookas in forum Newbie
    Replies: 2
    Last Post: 6th October 2008, 18:17
  5. Button in Layout help
    By IsleWitch in forum Newbie
    Replies: 4
    Last Post: 9th October 2007, 16:59

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.