Hi,
I have placed some qgraphicswidgets on a scene. i want to write call back function while widgets were dragged. some one please tell me how can i do that.( how to get signals from widgets)
Hi,
I have placed some qgraphicswidgets on a scene. i want to write call back function while widgets were dragged. some one please tell me how can i do that.( how to get signals from widgets)
Wait...
Can you lease explain in more detail what it is you want to do?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Here is the description:
I have a qgraphicsscene. on top of it i have placed a qgraphicswidget(its is icon image). If i drag this icon i need to do some custom operation. Now how can i catch the mouse events when i clicked or dragged my icon.How can i register and call the callbacks for these events. can you PLEASE explain me with some sample code if possible?
Get the Qt's source code, unpack it and go to examples/draganddrop directory. I think that will be enough at this point. Good luck.
I'm a rebel in the S.D.G.
See QGrpahicsWidget doc.
Look for the various event handlers.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks