Results 1 to 4 of 4

Thread: how to resize a window when its moving

  1. #1
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default how to resize a window when its moving

    Hello,

    I'm encountering a little problem,
    as you cans see in the title i want to resize a windowed qwidget when i'm moving it.

    of course i tried this
    Qt Code:
    1. void mywidget::moveEvent ( QMoveEvent * event )
    2. {
    3. resize(100,100);
    4. }
    To copy to clipboard, switch view to plain text mode 

    but the window only resizes when i release the mouse

    Does anybody can help me ?

    thank you

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to resize a window when its moving

    on windows, i think the events gets blocked when you are moving the window with title bar.

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

    gegebelzebuth (25th February 2011)

  4. #3
    Join Date
    Oct 2008
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to resize a window when its moving

    i can get the event when i begin to move the window, but i can't resize the window during the move

  5. #4
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to resize a window when its moving

    this the problem... you dont receive event paintEvents during a move in windows.

Similar Threads

  1. Resize of main window without setFixedSize
    By ElyBeta in forum Qt Programming
    Replies: 2
    Last Post: 15th July 2010, 15:09
  2. Qt resize child Window...
    By Peppy in forum Qt Programming
    Replies: 6
    Last Post: 12th December 2009, 12:53
  3. A bug in window resize
    By elcuco in forum Qt Programming
    Replies: 2
    Last Post: 6th December 2009, 01:04
  4. Stop window moving when clicking LMB
    By steg90 in forum Qt Programming
    Replies: 11
    Last Post: 11th June 2007, 10:59
  5. How to resize window with pushbutton
    By kaydknight in forum Newbie
    Replies: 2
    Last Post: 13th January 2007, 12:17

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.