Damn, I spent almost a month getting the coordinate system right and Im looking at this post now!
(...bangs his head TOO against the wall really really hard...)
BUT, I have one more HUGE problem.
I am working on a map utility, similar to Google Maps (Not that extensive though.) I have used scale(1,-1) for getting the coordinate system right, just the way djurodrljaca has done. I am using picture (svg files) to represent cities and other prominent places on the map. When I draw these pictures using QGraphicsPixmapItem, I have explicitly used pixmapItem->scale(1,-1); to bring it back to normal. BUT now, when I zoom on to the view, the picture is also zoomable, i.e. it gets bigger and bigger, something that is undesirable. So I used the qt flag QGraphicsItem::ItemIgnoresTransformations. But then the result is just not visible. And if I change the implementation a little, it remains constant in size regardless of the zoom level, but is again mirrored!
Similarly, I am using QGraphicsTextItem for showing labels for cities on the map and when I use this flag, QGraphicsItem::ItemIgnoresTransformations, on it, with scale(1,-1), the result is just the same...
Please suggest something. I have already spent a lot of time getting this thing right and I am still nowhere near it![]()
Bookmarks