Results 1 to 2 of 2

Thread: Set different size of widgets in Horizontal Layout

  1. #1
    Join Date
    Jul 2010
    Posts
    25
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Set different size of widgets in Horizontal Layout

    Hi,
    I have a horizontal layout. The layout contains a Listview and a TableWidget. When I maximize the main window both the widgets resize.
    I need the Listview size to be constant, I mean it should just increase in length but not in width. I want the TableWidget to have maximum space. Can this be done?
    I know this is a basic question, but I cannot seem to solve it.
    Your help is appreciated.
    Thanks in advance.

  2. #2
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Thanks
    33
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Set different size of widgets in Horizontal Layout

    SizePolicy = Fixed....Or set the geometry yourself

Similar Threads

  1. size of horizontal layout
    By maarvi in forum Newbie
    Replies: 5
    Last Post: 28th June 2011, 10:24
  2. Replies: 0
    Last Post: 26th October 2010, 17:59
  3. Replies: 5
    Last Post: 18th April 2010, 23:31
  4. Widgets Layout in a QToolBar.
    By cydside in forum Qt Programming
    Replies: 1
    Last Post: 27th June 2009, 08:46
  5. Putting Widgets into a Layout
    By jcoop in forum Newbie
    Replies: 16
    Last Post: 18th April 2009, 22:00

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.