Context menu behaves differently on windows as on linux
-
Hello,
I construct a mainwindow where I specify a context menu with
connect(w1, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(ShowContextMenu(const QPoint&)));
I do that as well for QWidget derived widgets.
As a result on linux when I press the mouse button outside the QWidget I get the signal from the mainwindow,. When I press on the QWidget I get the signal from the widget. That is correct for me.
However on ms-windows I get alternatively the signal from the background and the widget when pressing on the widget. How do I get the same behavior on windows as on linux ?