Hi!
I have a QFrame in my QMainWidget, which contains also a QMenuBar. If the user makes a doubleclick, I want to check if this doubleclick was placed inside the frame.
Here is my code, which works nearly fine:

Explanation:
The geometry() of the QFrame begins after the QMenuBar.
A MouseClick is count before the QMenuBar, here is a picture:

So when I click like in the picture above, qt "thinks" I clicked in the framearea.
My solution would be to modify the y from the MouseEvent like in my code:
Code: Alles auswählen
pMouseEvent->setY(pMouseEvent->y()+=m_ui.menubar->rect().height());
what can I do?