Check QCursor::pos() against widget->rect()
Solved
General and Desktop
-
Hey
Like topic say, as far as I can tell my mouse is in screen coordinate and my widget rect is not... how can I properly do this test?
Regards
Dariusz -
"You can call
QWidget::mapFromGlobal()
to translate it to widget coordinates."
(From https://doc.qt.io/qt-5/qcursor.html#pos)
1/2