Please provide a minimal compilable example reproducing the problem.
Please provide a minimal compilable example reproducing the problem.
I had this problem. I have found that if had another method in my class (derived from QGraphicsPixmapItem), the mouseDoubleClickEvent was called:
Qt Code:
{ // DO NOT CALL QGraphicsPixmapItem::mousePressEvent() }To copy to clipboard, switch view to plain text mode
So if had such method in my class, the "mouseDoubleClickEvent(QGraphicsSceneMouseEven t* event)" was called.
Bookmarks