Results 1 to 3 of 3

Thread: QT4: Autoresizing / shapechanging layout?

  1. #1
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    300
    Thanks
    9
    Thanked 29 Times in 29 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default QT4: Autoresizing / shapechanging layout?

    First of all, I only just found this new forum and posted the same question to the old one. Anyway, it looks great! Good job!

    I've created a layout that needs to change its size when the user hides a section of it. Look at the screenshot. It's pretty straight-forward. I didn't find any existing QT mechanism for this. Strange, by the way, because I got the idea from the QT Designer toolbox. However, the provided toolbox widget doesn't have the same look or functionality. So I thought I'd use pushbuttons with small +/- icons.

    I can get the widgets to hide and show themselves alright, but I can't get the dialog to change shape with it. QT3 had a simple property for this, called resizeMode. All I had to do is set it to fixed and it was out of the users hands.

    How can I accomplish this in QT4?

    Thanks in advance!
    Attached Images Attached Images
    "The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry

  2. #2
    Join Date
    Feb 2006
    Location
    Denmark
    Posts
    11
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QT4: Autoresizing / shapechanging layout?


  3. #3
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    300
    Thanks
    9
    Thanked 29 Times in 29 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: QT4: Autoresizing / shapechanging layout?

    Thanks! Next time I'll search the forum more thoroughly.
    "The strength of a civilization is not measured by its ability to wage wars, but rather by its ability to prevent them." - Gene Roddenberry

Similar Threads

  1. changing layout of a widget
    By mikro in forum Qt Programming
    Replies: 10
    Last Post: 4th August 2009, 20:21
  2. Qt like Layout Manager available for .NET platform
    By vkhaitan in forum Qt Programming
    Replies: 0
    Last Post: 5th November 2008, 13:36
  3. Qt layout memory issue
    By bunjee in forum Qt Programming
    Replies: 9
    Last Post: 25th August 2007, 17:11
  4. Resizing problems when applying a layout
    By JimBrown in forum Newbie
    Replies: 1
    Last Post: 21st February 2007, 22:54
  5. "dynamic" layout
    By hulk in forum Qt Programming
    Replies: 2
    Last Post: 9th May 2006, 07: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.