Results 1 to 3 of 3

Thread: Is it possible to reset the layout's height to original one?

  1. #1
    Join Date
    Dec 2010
    Posts
    7
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Question Is it possible to reset the layout's height to original one?

    Hi, Sir:
    I add some buttons in a dumy widget. Then, include another button (button1) and this widget into a VBoxLayout. In constructor, I hide the widget, and connect the button with widget to be able to show these buttons after pressing the button1.

    Things like below
    ___________________
    Button1 ---> Button1
    .................. Button2
    .................. Button3
    ___________________

    But, after that, the height of layout cannot be back to original height.
    Is there any way to reset the just-fit layout height???

    Thanks a lot.

    BR,
    Pico

  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: Is it possible to reset the layout's height to original one?

    You mean something like this -- [wiki]Expanding dialog[/wiki]?
    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
    Dec 2010
    Posts
    7
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Is it possible to reset the layout's height to original one?

    Hi, Sir:
    yes... I would like to have expanding buttons...

    Thanks

Similar Threads

  1. Replies: 2
    Last Post: 21st May 2013, 10:43
  2. How to reset a QGroupBox's layout?
    By dongli in forum Qt Programming
    Replies: 13
    Last Post: 4th June 2010, 12:48
  3. Fixed-height layout question
    By TheJim01 in forum Newbie
    Replies: 1
    Last Post: 16th March 2010, 20:37
  4. Replies: 1
    Last Post: 9th February 2010, 12:11
  5. How to get the index of original SQL table?
    By Kode.Cooper in forum Qt Programming
    Replies: 0
    Last Post: 27th January 2010, 08:43

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.