Results 1 to 5 of 5

Thread: show a hidden widget, then hide but get same man window size

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Posts
    13

    Default show a hidden widget, then hide but get same man window size

    I am developing an application that shows some graphics in a main window. It is dialog based application. One of the widgets showing some graphics is to be hidden as default and to be shown only if a user opts to show it.

    I have the application laid out and I have selected the widgets to appear in a grid layout so that they resize as the window is resized.

    The problem is that when I show my hidden widget, the main application window enlarges to accommodate that widget. But when I hide that widget again, the main window does not shrink back to its original size.

    I have attached an example application that shows this behavior. The application has two widgets arranged in a vertical layout. The top is a large label, the bottom widget is the graphics widget, initially hidden. Choosing to show the widget from the menu shows it, and toggling that menu hides it.

    So how do I make my application window resize back to its original position after I hide widget?

    Thanks.
    Attached Files Attached Files

Similar Threads

  1. Replies: 10
    Last Post: 20th April 2015, 22:24
  2. Replies: 1
    Last Post: 28th July 2011, 17:32
  3. Replies: 0
    Last Post: 26th October 2010, 17:59
  4. MAC: Getting Dock widget show/hide events
    By jay in forum Qt Programming
    Replies: 3
    Last Post: 31st May 2010, 08:07
  5. Replies: 0
    Last Post: 11th May 2009, 02:28

Tags for this Thread

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.