Why Is My Qgraphicsitem Not Selectable?
I copied some code snippets and made my own version of it. The initial snippet (which I don't have anymore) allowed to move and also select a QgraphicsItem. My modified version all
Solution 1:
You miss this method in class GraphicsItem:
def mousePressEvent(self, event):
# select object
QtGui.QGraphicsItem.mousePressEvent(self, event)
print (self) # show the selected item
Post a Comment for "Why Is My Qgraphicsitem Not Selectable?"