Unclear Map Definitions
-
wrote on 23 Jun 2016, 16:41 last edited by Walux
Hi Qt community ,
I just found the documentation definitions of :
-mapfrom/toscene
-mapfrom/toparent
-mapfromItem and maptoItem
-mapRectFrom/ToItem
kind of unclear , and i thought maybe i'll understand more if someone would volunteer to show me the difference between these , and especially between (from and to)I'll be grateful for any help.
Nice regards , -
Hi Qt community ,
I just found the documentation definitions of :
-mapfrom/toscene
-mapfrom/toparent
-mapfromItem and maptoItem
-mapRectFrom/ToItem
kind of unclear , and i thought maybe i'll understand more if someone would volunteer to show me the difference between these , and especially between (from and to)I'll be grateful for any help.
Nice regards ,wrote on 23 Jun 2016, 20:21 last edited byI'd recommend reading this article which explains everything fairly well: Coordinate System
As the article explains, each graphics item maintains it's own coordinate system. The methods you are referring to are used to translate coordinates between those items, between the items and the scene and so on.
I hope that reading that article will help, otherwise feel free to ask if clarification is needed.
2/2