Results 1 to 4 of 4

Thread: About Layout...

  1. #1
    Join Date
    Aug 2010
    Posts
    20
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default About Layout...

    Well, here's the problem: I put a QTreeWidget and a QVTKWidget in a Horizontal Layout, but then the QVTKWidget was huddled to a line, and the whole layout was filled with QTreeWidget

    So how to change the widgets' size in the Layout?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: About Layout...

    Change horizontal size policies of the two widgets or set a minimum size for the QVTKWidget.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Aug 2010
    Posts
    20
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: About Layout...

    Thank you~ solved by changing the size options. Though I still don't know the meaning of those options in 'Policy' (I only know 'Fixed' is to lock the size)

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: About Layout...

    It is all explained in the docs.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. layout
    By franco.amato in forum Qt Programming
    Replies: 1
    Last Post: 29th December 2009, 10:10
  2. Replies: 0
    Last Post: 25th May 2009, 10:00
  3. Layout
    By ^NyAw^ in forum Qt Programming
    Replies: 1
    Last Post: 18th February 2008, 12:57
  4. Replies: 7
    Last Post: 15th June 2007, 16:13
  5. Replies: 2
    Last Post: 30th April 2007, 12: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.