Results 1 to 5 of 5

Thread: Drag and drop Items in QGraphicsScene

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: Drag and drop Items in QGraphicsScene

    Don't reimplement drag events. Reimplement mouse events only -- mousePress, mouseMove and mouseRelease events. You don't need anything else. To be honest you can do even without reimplementing those events but instead handling itemChanged() but if you don't have experience with that, it might be easier with mouse events.
    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.


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

    MinMin (27th March 2014)

  3. #2
    Join Date
    Mar 2014
    Posts
    4
    Thanks
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Drag and drop Items in QGraphicsScene

    Thank you for your advice I will try and see how

Similar Threads

  1. Help with drag and drop several items, labels
    By jimmybanegas93 in forum Qt Programming
    Replies: 1
    Last Post: 14th February 2014, 08:41
  2. Drag&Drop using QGraphicsScene
    By topcraft in forum Qt Programming
    Replies: 0
    Last Post: 24th October 2011, 13:46
  3. drag&drop from QGraphicsScene to QListWidget
    By hakiim35 in forum Qt Programming
    Replies: 4
    Last Post: 7th July 2010, 11:29
  4. Drag and Drop in QGraphicsScene misses items
    By enno in forum Qt Programming
    Replies: 2
    Last Post: 30th August 2009, 15:17
  5. Drag & drop items on the same QTreeView
    By wind in forum Qt Programming
    Replies: 2
    Last Post: 11th October 2006, 14:29

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.