Results 1 to 18 of 18

Thread: Question about drag and drop in QGraphicsView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Posts
    63
    Thanks
    11
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Question about drag and drop in QGraphicsView

    First of all hello to all fellow programmers. I am a new member so wanted to say hi first.

    I am working with a little projekt to learn more about the graphicsscene, graphicsview and graphicsitem and how the work together. I have managed to create a graphicsview and graphicsscene and managed to add items to it using the mouse events.

    Now what i want to do is to move these items i have added. And going crazy here. Been reading docs for 2 days now but havent really figured it out yet. I am a bit of a newbie at Qt so maybe thats why i cant grasp it.

    Hopefully there are some helpfull people here that can help me out understanding this.

    Also attached my code in a zip

    Kind regards
    Attached Files Attached Files

Similar Threads

  1. Drag from QtreeWidget and drop to QGraphicsView
    By syjgin in forum Qt Programming
    Replies: 0
    Last Post: 3rd July 2010, 14:17
  2. Drag and Drop from QListWidget to QGraphicsView (Scene)
    By fritzone in forum Qt Programming
    Replies: 0
    Last Post: 16th June 2010, 09:41
  3. How to drag and drop on QGraphicsView frame
    By wudelei in forum Qt Programming
    Replies: 1
    Last Post: 16th April 2010, 08:04
  4. Drag and Drop from QListView to QGraphicsView
    By NoRulez in forum Qt Programming
    Replies: 0
    Last Post: 20th August 2009, 14:26
  5. Drag and drop from QTreeWidget to QGraphicsView
    By igu@na in forum Qt Programming
    Replies: 2
    Last Post: 27th August 2008, 08:24

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.