Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Mouse movement leaking through to underlying widget
gde23 last edited by
I have a QCombobox on top of another widget.
The underlying widget uses mouseMoveEvent() for interaction.
Now when I click on the QComboBox and the menu pops up the underlying widget acts like if i had moved the mouse.
This only happens on Windows. On Linux everything works as it should.
So do I have to subclass the QComboBox and call event->accept() explicitly so it does not forward to the underlying widget or how can I prevent this?
yep,on first click on the combobox, a moveevent is sent to widget under.
I assume its due to it still having focus until after the mouseupEvent on the combo.
And yes, it does work to call accept for the event in a custom Combobox as this sample shows