Results 1 to 9 of 9

Thread: How to get screen resize event?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2010
    Posts
    68
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: How to get screen resize event?

    Qt Code:
    1. void YourWidgetname::resizeEvent(QResizeEvent *event)
    2. {
    3. //Add your code here
    4. QWidget::resizeEvent(event);
    5. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Mar 2010
    Posts
    22
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: How to get screen resize event?

    Thanks Kevin

    i was also using the same way as you mentioned ..but when I debug ...no event gets generated on changing Portrait to Landscape mode ....

    Do we also need to set this Resize Event on some widget .....

Similar Threads

  1. Replies: 4
    Last Post: 19th February 2009, 11:10
  2. Resize event on stretch?
    By kodiak in forum Qt Programming
    Replies: 2
    Last Post: 3rd November 2008, 22:51
  3. Qt event queue overloading?
    By gct in forum Qt Programming
    Replies: 3
    Last Post: 17th March 2008, 18:39
  4. Resize event
    By boss_bhat in forum Qt Programming
    Replies: 5
    Last Post: 19th July 2006, 15:43
  5. postponing resize event
    By Honestmath in forum Qt Programming
    Replies: 11
    Last Post: 26th February 2006, 00:32

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
  •  
Qt is a trademark of The Qt Company.