Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED] Why is widget !underMouse()?
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.
the popup of the combobox is another widget...which is a toplevel widget but still child of combobox.
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.
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).