[SOLVED] Why is widget !underMouse()?
-
wrote on 7 Jun 2013, 09:20 last edited by
Hi,
I have a QWidget with a QComboBox in it. When I open the ComboBox and move the mouse over an entry which is outside the widget I get the leaveEvent from the widget where I ask the ComboBox if it is under the mouse or not. Even though the mouse is over the list it always says that it is not which does not make any sense to me.
Thanks,
Markus -
the popup of the combobox is another widget...which is a toplevel widget but still child of combobox.
-
wrote on 7 Jun 2013, 10:13 last edited by
How can I know then whether the mouse is over the popup of the combobox or not?
-
you could install an eventfilter on "QComboBox::view()":http://qt-project.org/doc/qt-4.8/qcombobox.html#view and check for the wanted events there.
-
wrote on 7 Jun 2013, 13:17 last edited by
The event filter works fine but I still don't get the point why the view is not aware of the mouse position (underMouse is false as well).
1/5