Solved Mouse movement leaking through to underlying widget
-
Hello,
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?
-
Hi
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
https://www.dropbox.com/s/ljd4s29abzrvtc9/combotest.zip?dl=0