How to convert global coordinate to coordinate relative to parent?
-
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