Can anyone just tell if I have to implement restricting the items myself ??
I have tried various inbuilt functions but withoout the desired effect![]()
Can anyone just tell if I have to implement restricting the items myself ??
I have tried various inbuilt functions but withoout the desired effect![]()
I will try that...
Before that I was trying dragMoveEvent.
As an example, I built another application, involving a CScene,CView,and CItem , derived from QGraphicsScene, QGraphicsView and QGraphicsItem respectively.
I overrided dragMoveEvent in all three classes. But I find that the program doesnt enter any of the three overloaded functions when I drag an item in the scene
In what case is dragMoveEvent called ??![]()
and i guess mouseMoveEvent is triggered when I drag an item. Why isnt dragMoveEvent called ??
drag events are meant for drag&drop operations. You have to specifically enable dragging items for these events to be sent. In "usual" situations you should use mousePress/Move/Release events.
Bookmarks