Results 1 to 3 of 3

Thread: hide/show screen update problem

  1. #1
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Thanks
    44
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question hide/show screen update problem

    Hi, In a main window I have an image and an information window beside the image all in a HBoxlayout . I want to make an option in my program that let the user hide/show the information screen. So if the information is hidden, the image has more space to be shown. The problem is that if I call to show or hide functions of the information screen and after I want to know the new size of the window that contains the image, its size has not been updated yet. I want to know when the layout is updated after calling show or hide of one of its widgets. I have tried calling repaint or update of the main window but no results. Thanks.
    Last edited by SkripT; 4th February 2006 at 19:27.

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

    Default Re: hide/show screen update problem

    You shouldn't need such information... All you need is to set a proper size policy (expanding probably) for a widget holding your image and if the layout changes, the widget will get a resize event and you can intercept it and do whatever you need there.

  3. #3
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Thanks
    44
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: hide/show screen update problem

    That's exactly what I did to solve the problem. Thanks

Similar Threads

  1. On Screen Keyboard Problem
    By cutie.monkey in forum Qt Programming
    Replies: 1
    Last Post: 16th July 2008, 13:28
  2. Replies: 0
    Last Post: 16th July 2008, 13:15
  3. Replies: 1
    Last Post: 26th December 2007, 10:58
  4. QSlider Update Problem
    By December in forum Qt Programming
    Replies: 4
    Last Post: 10th September 2006, 04:02
  5. Problem with screen update...
    By mysearch05 in forum Qt Programming
    Replies: 2
    Last Post: 27th January 2006, 18:24

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.