PDA

View Full Version : Need to double-click twice to edit QGraphicsTextItem



EarthHobbit
19th May 2015, 21:00
Hi,
I have 2 QGraphicsTextItem's (custom class) added in a QGraphicsView scene and a mouseDoubleClickEvent in this custom class.
The first time I double-click on one of the QGraphicsTextItem's, the mouseDoubleClickEvent event IS fired.
However all subsequent times, I need to double-click TWICE on these custom QGraphicsTextItem's to get the mouseDoubleClickEvent event fired.
How can I set it to a simple double-click every time ?
Thanks