Results 1 to 2 of 2

Thread: Question about resizeEvent

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

    Question Question about resizeEvent

    Hi all, I'm programming an applicattion and I need to know everytime that a widget changes it's size. Currently, I emit a signal everytime that the widget receives a resizeEvent. The problem is that if connect this signal with its respective slot before the widget is shown, in the moment that I make this widget visible, the slot is executed because the widget has changed its size to its initial size. I would like not to deal with this first case. A solution is making the conection inmediately after that I call to show. I've tried to make the conection in the show event of the widget but the slot is still executed at the moment that I make the widget visible. And here's my questions: making the conection inmediately after calling to show garantees that the slot is never exectuted at the moment that the widget is shown in any case? Does anybody knows another solution to solve this problem?

    Many thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    India
    Posts
    115
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Question about resizeEvent

    Try
    Qt Code:
    1. QCoreApplication::processEvents()
    To copy to clipboard, switch view to plain text mode 
    before the connect statement.

  3. The following user says thank you to yogeshm02 for this useful post:

    SkripT (28th February 2006)

Similar Threads

  1. What cannot be done in resizeEvent(..)?
    By nifei in forum Qt Programming
    Replies: 2
    Last Post: 29th December 2008, 02:48
  2. Plugin implementation question
    By JPNaude in forum Qt Programming
    Replies: 12
    Last Post: 27th August 2008, 20:24
  3. SQL Question
    By ^NyAw^ in forum Qt Programming
    Replies: 5
    Last Post: 8th April 2008, 19:36
  4. Question regarding how to paint after zoom.
    By JonathanForQT4 in forum Qt Programming
    Replies: 2
    Last Post: 26th January 2007, 15:34

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.