Results 1 to 6 of 6

Thread: expanding/shrinking issues.

  1. #1
    Join Date
    Jun 2007
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default expanding/shrinking issues.

    Hi, How can i have my controls automatecally resized. I am having a Tab Control inside Grid layout and Inside tab control Some TreeWidget inside Horizontal Layout.

    How can i have them expanding/shrinking automatecally.

    If possible please provide some code.

    Thanks.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: expanding/shrinking issues.

    Could we see what code you have so far? Or maybe the UI file?

    Regards

  3. #3
    Join Date
    Jun 2007
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: expanding/shrinking issues.

    Hi,

    I am attaching the ui file. Please let me know.

    Thanks.
    Attached Files Attached Files

  4. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: expanding/shrinking issues.

    You didn't have any layout set in the tab widget pages.
    I set them both to have a vertical layout.
    Take a look.

    Regards
    Attached Files Attached Files

  5. #5
    Join Date
    Jun 2007
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: expanding/shrinking issues.

    Hi,

    I started getting error while i compiled it on my end. Following are few of them

    'setVerticalSpacing' : is not a member of 'QGridLayout'

    'setBottomMargin' : is not a member of 'QHBoxLayout'

    I replaced my ui file with yours, am i doing something wrong?

    Thanks.

  6. #6
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: expanding/shrinking issues.

    Sorry, I saved that with 4.3.
    Here's one saved with 4.2.2.

    Anyway, you don't really need to use mine. Just open your UI, right click on each of the tabs, select Layout and then Lay out vertically.

    Regards
    Attached Files Attached Files

  7. The following user says thank you to marcel for this useful post:

    Preeteesh (16th June 2007)

Similar Threads

  1. QGroupBox Issues
    By ToddAtWSU in forum Qt Programming
    Replies: 8
    Last Post: 16th January 2007, 13:45
  2. QDialog Issues
    By vijay anandh in forum Qt Programming
    Replies: 1
    Last Post: 17th October 2006, 08:24
  3. MySql plugin driver issues
    By stevey in forum Installation and Deployment
    Replies: 11
    Last Post: 20th September 2006, 13:45
  4. Issues regarding QMySql drivers and mysql database
    By bera82 in forum Qt Programming
    Replies: 2
    Last Post: 10th August 2006, 17:50
  5. QT 4.1 Designer issues with Mac
    By Tori in forum Qt Tools
    Replies: 4
    Last Post: 6th January 2006, 18:28

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.