Results 1 to 14 of 14

Thread: prevent Window Moving?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: prevent Window Moving?

    What is an "informational" event?
    I will not negate what you wrote, since it was long ago since I had to deal with move events.
    I will test it, and reply again.
    But I think you are wrong - or at least, that one should be able to configure if move events should get in before the mouse button is released if what you say is correct.

    A work around could be done by ignoring mouseMoveEvents.

    The docs says nothing about "only after mouse release":
    If the widget is a window, the position is that of the widget on the desktop, including its frame.

    When changing the position, the widget, if visible, receives a move event (moveEvent()) immediately. If the widget is not currently visible, it is guaranteed to receive an event before it is shown.

    By default, this property contains a position that refers to the origin.
    Last edited by high_flyer; 9th March 2012 at 13:08.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Moving window
    By Kangs in forum Qwt
    Replies: 3
    Last Post: 13th September 2011, 19:12
  2. Moving window freezes event loop
    By P@u1 in forum Qt Programming
    Replies: 1
    Last Post: 11th July 2011, 16:19
  3. how to resize a window when its moving
    By gegebelzebuth in forum Qt Programming
    Replies: 3
    Last Post: 25th February 2011, 10:46
  4. Replies: 1
    Last Post: 18th August 2010, 13:39
  5. Stop window moving when clicking LMB
    By steg90 in forum Qt Programming
    Replies: 11
    Last Post: 11th June 2007, 10:59

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.