How to choose an item in QGraphicItem?
I have some items in a scene.
How can I choose an item using my own QPoint like imitating 'selectedItems()' in mouse event.
QList<QGraphicsItem *> items = scene->selectedItems();
May be is there a tutorial or some examples?
I hope I'm not misunderstanding you, but have you tried "QGraphicsScene:items()":http://qt-project.org/doc/qt-4.8/qgraphicsscene.html#items-3 ?
Thank for reply...
I already tried QGraphicsScene:items(), but it worked for mouse. In my application, the coordinate point is from user input.
I'm afraid I don't quite understand what the problem is. As long as you have the coordinate/point, regardless of where it came from, you can use the above-mentioned function call.
Any chance of seeing some code?