Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Check QCursor::pos() against widget->rect()
Dariusz last edited by
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?
Pl45m4 last edited by Pl45m4
"You can call
QWidget::mapFromGlobal()to translate it to widget coordinates."