Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Any signal on QGraphicsView/QGraphicsScene that gets emitted when any element in it is selected?
sairajesh last edited by
Do we have any signal that gets emitted automatically whenever any item in the scene gets selected? Or we must listen to mouse events and iterate across all items to see if it is selected or not? Do we have any other better way? Currently, in item's paint() I'm checking if item isSelected() and performing my action, but I want to know, if we have some signal on scene or view to know if any item under it is selected or not.
steno last edited by
QGraphicsScene::selectionChanged is the signal you might be looking for.