QGraphicItem is not recognized
I have a QWidget, inside it a QGraphicsView, inside it QGraphicsScene, inside it QGraphicsItem.
2 items exist now. After doing some resize of these items, use mouse click, inside certain item's region, the mouse click event cannot be received by the QGraphicsItem. Does anyone has an idea about the possiblity of this problem? Thanks in advance.
PS: i checked the boundingRect of the item, my click-point is inside it.
Re: QGraphicItem is not recognized
You can always install eventFilter on qApp object and add qDebug info inside. This way you can track down whats happening to the mouse press events.
Re: QGraphicItem is not recognized
So the items are clickable first and when you do some changes it isn't clickable anymore?
Well my first thought was that you arent changing the bounding rect when you resize the items and that you lose it somehow. Some code would be nice because could keep on guessing
Re: QGraphicItem is not recognized
Quote:
Originally Posted by
stampede
You can always install eventFilter on qApp object and add qDebug info inside. This way you can track down whats happening to the mouse press events.
Thanks for your suggestion. Now I am trying this way.