Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Mouse grabbing not working in menu with qwidgetaction
Guest last edited by
Hello. I have a custom component to edit number (derived from QSpinBox). I grab mouse move for line edit to simulate changing value up and down. When I grabbing mouse movement, I change cursor position to position I saved when enter editing component by mouse clicking. Everything works fine if I add component to main window. However if I have this componet in menu or popup, cursor go out of menu and I don't know why
VRonin last edited by
It's possible you are mixing up relative to global coordinates. Can you post your code to move the mouse?
mdan last edited by
https://forum.qt.io/topic/130938/mouse-grabbing-not-working-in-menu-with-qwidgetaction. Can you answer here? I missed and send second post :-(