Results 1 to 6 of 6

Thread: how to move several plot items relatively to mouse movement

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Sep 2009
    Posts
    140
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    4
    Thanked 17 Times in 17 Posts

    Default Re: how to move several plot items relatively to mouse movement

    Quote Originally Posted by rambo83 View Post
    I have got the following problem:
    ... I thought about storing the initial mouse click position and calculate the difference relatively to this initial point ...
    You've got it.
    A way to do what you want is to store the coordinates of the mouse click then computed in mouse move the offset that you need to apply for your selected vertices in your cursorMove method.

  2. The following user says thank you to scascio for this useful post:

    rambo83 (26th November 2009)

Similar Threads

  1. Forwrad & Backward mouse movement
    By sujan.dasmahapatra in forum Newbie
    Replies: 1
    Last Post: 28th October 2009, 06:54
  2. Mouse move inside control/Widget
    By squidge in forum Newbie
    Replies: 0
    Last Post: 27th September 2009, 16:56
  3. Remove Legend items, move legends
    By giusepped in forum Qwt
    Replies: 0
    Last Post: 11th February 2009, 02:35
  4. Move Rectangle on mouse Move
    By vermarajeev in forum Qt Programming
    Replies: 24
    Last Post: 14th May 2007, 05:34
  5. Game mouse movement
    By chaosgeorge in forum Qt Programming
    Replies: 1
    Last Post: 2nd December 2006, 23:41

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.