Results 1 to 3 of 3

Thread: Handle Drag & Drop Events with QGraphicsItem [SOLVED]

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Handle Drag & Drop Events with QGraphicsItem [SOLVED]

    Ok, Problem found : I had to start the event with a QDrag of course
    Now, it works fine!

    Hello,

    I have a little problem with subclassing QGraphicsItem : everything works fine, bounding box, painting, etc, excepted that I cannot catch drag & drop events...

    My Item is part of a QGraphicsScene, rendered with a QGraphicsView, nothing special really...
    I have reimplemented the 3 protected functions for drag (dragEnter, dragMove, dropEvent..), but nothing happens.

    It seems that events aren't dispatched by the scene...I followed the Qt Drag And Drop Robot Example, and it works perfectly there...Any idea ?

    Thanks,

    Guilugi.
    Last edited by guilugi; 7th February 2007 at 16:16.

Similar Threads

  1. Drag & drop with model/view (Qt4)
    By yogeshm02 in forum Qt Programming
    Replies: 16
    Last Post: 19th September 2011, 20:36
  2. Drag and Drop
    By allensr in forum Qt Programming
    Replies: 1
    Last Post: 11th December 2006, 20:50
  3. Windows OLE drag & drop
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 12th September 2006, 09:47
  4. Replies: 7
    Last Post: 8th September 2006, 16:19
  5. Drag and drop revisited
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 30th June 2006, 16: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.