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.
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.
Whats your drag mode in QGraphicsView class ?
seems you have set it to QGraphicsView::ScrollHandDrag
Also does your widget receive drag events ?
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.
Bookmarks