Results 1 to 5 of 5

Thread: drag&drop from QGraphicsScene to QListWidget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2010
    Posts
    21
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: drag&drop from QGraphicsScene to QListWidget

    Ok, I changed the item to pointer.
    I think the drag doesnot work, item does not move at all.
    The cursor keeps being in Qt::ClosedHandCursor state whenever I move the cursor into the scene, even if I dont click.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: drag&drop from QGraphicsScene to QListWidget

    Whats your drag mode in QGraphicsView class ?
    seems you have set it to QGraphicsView::ScrollHandDrag

    Also does your widget receive drag events ?

  3. #3
    Join Date
    Jul 2010
    Posts
    21
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: drag&drop from QGraphicsScene to QListWidget

    hmm I haven't set any drag mode in my GraphicsView class, I just worked on my graphics item class. What can I do in the graphics view class?

    Which widget do you mean to receive drag events? graphics item or the target list widget class? how can I set to receive drag events? The only pieces of code is above as given..

    Thanks.

Similar Threads

  1. Drag and drop between QListWidget's
    By estanisgeyer in forum Qt Programming
    Replies: 4
    Last Post: 17th February 2011, 04:29
  2. Replies: 3
    Last Post: 10th June 2010, 15:13
  3. Replies: 1
    Last Post: 22nd October 2009, 00:02
  4. QListWidget Drag and Drop problem
    By winkle99 in forum Qt Programming
    Replies: 0
    Last Post: 20th October 2009, 20:00
  5. QListWidget/QTreeWidget Drag and Drop
    By hlvietlong in forum Qt Programming
    Replies: 2
    Last Post: 30th June 2009, 18:09

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.