Gopala Krishna
12th January 2007, 15:58
Hi,
though drag and drop from treeview to QGraphicsScene is working appropriately in my app, I thought of implementing a feature as described below.
What I want to do is change the pixmap of drag object to that of item (Eg. Resistor's pixmap) when the drag enters QGraphicsScene\QGraphicsView.
Is this possible ? If so, can somebody guide me on how can I achieve this ?
Also I would like the item to be added to scene when it is selected in treeview (just by clicking) and then just moving mouse without any button pressed and finally place it at right spot when clicked once more in view. Can this be done using drag and drop mechanism ?
Or is there any better way to do this ?
though drag and drop from treeview to QGraphicsScene is working appropriately in my app, I thought of implementing a feature as described below.
What I want to do is change the pixmap of drag object to that of item (Eg. Resistor's pixmap) when the drag enters QGraphicsScene\QGraphicsView.
Is this possible ? If so, can somebody guide me on how can I achieve this ?
Also I would like the item to be added to scene when it is selected in treeview (just by clicking) and then just moving mouse without any button pressed and finally place it at right spot when clicked once more in view. Can this be done using drag and drop mechanism ?
Or is there any better way to do this ?