Hi, I'm new to Qt.
So, I'm having an issue that I can't find a way to solve. Let me explain my code:
I have a QWidget called Table. Inside this widget there's a QGraphicsView and a QGraphicsScene inside the QGraphicsView.
I am adding QWidgets called Item to this QGraphicsScene.
First, I wanted to make this Item QWidget transparent, so I used:
item->setAttribute(Qt::WA_TranslucentBackground);
That worked fine! But, I also wanted for the collision detection in the GraphicsScene and the mouse events of this Item widget to ignore the transparent areas. I tried:
item->setAttribute(Qt::WA_TransparentForMouseEvents);
But, that changed nothing. The QWidget is transparent, but it is still detecting all the widget rect. How to fix it?
Thanks.
Bookmarks