Results 1 to 12 of 12

Thread: how to use mouse move event to drag curves on QGraphicsScene?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to use mouse move event to drag curves on QGraphicsScene?

    In my opinion your approach makes completely no sense. You should have items for nodes and separate items for curves (or lines) between nodes and manipulate curves using those node items. But you can't implement it in 10 lines of code no matter how much you try it. Trying to detect control points for curves by observing coordinates is a totally bogus approach in an object oriented system such as Graphics View.

    Don't take it personal but it's more and more often situation that I'm surprised people start programming without thinking first how they are going to implement the whole solution (in terms of designing the architecture, not writing the actual code) and they end up trying to implement some wacky solutions instead of using standard approaches used by everyone else in the industry. For instance -- how did you plan to move the control point in the path to some other position?
    Last edited by wysota; 19th September 2013 at 10:39.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Problem with QGraphicsScene mouse move event
    By Nesbit in forum Qt Programming
    Replies: 2
    Last Post: 22nd April 2012, 18:12
  2. Replies: 3
    Last Post: 7th January 2012, 08:38
  3. QGraphicsScene drag event
    By rbp in forum Qt Programming
    Replies: 10
    Last Post: 13th May 2009, 14:03
  4. mouse move event filtering in PyQt4
    By lucaf in forum Qt Programming
    Replies: 1
    Last Post: 4th April 2009, 14:53
  5. Mouse Move Event
    By merry in forum Newbie
    Replies: 5
    Last Post: 3rd June 2007, 06:26

Tags for this Thread

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.