[SOLVED]how to check if QMouseEvent::pos inside a QWidget?
Solved
General and Desktop
-
how to check if QMouseEvent::pos inside a QWidget?
i ought to use :
this->geometry().contains(event.windowPos());
but i saw this in the doc: "If you move the widget as a result of the mouse event, use the global position returned by globalPos() to avoid a shaking motion."so should i convert this->geometry to globalCodinate?and how?
thank you
-
Then please mark the topic as solved, thx