Qt 6.12 LTS is out! See what's new in the release
blog
How to convert global coordinate to coordinate relative to parent?
General and Desktop
3
Posts
2
Posters
7.4k
Views
1
Watching
-
I think Qcursor::pos() give the global screen coordinates how can i convert it relative to parent coordinate.
-
If you have a widget, you can call "QWidget::mapFromGlobal":http://doc.qt.nokia.com/4.7/qwidget.html#mapFromGlobal
-
[quote author="Gerolf" date="1321869156"]If you have a widget, you can call "QWidget::mapFromGlobal":http://doc.qt.nokia.com/4.7/qwidget.html#mapFromGlobal[/quote]
thanks