What is the best way to use the Qt Coordinate system with the Graphics View Framework?
(I am using Qt 4.3.0)
At the moment I just scale the view to (1, -1), but this is not enough if you add text to the scene, since the text gets mirrored. The solution is to additionally mirror the text, but this can get complicated in some situations and it is probably a performance issue when you have a lot of items on the scene.
But I think that there is another problem. If I would print this scene, would it be mirrored?
Is it better to leave the coordinate system as it is and just multiply the y coordinate and the angle with -1 when you get (set) the location and orientation from (of) the item?
This can probably be solved with the lower level of the API, so it probably wouldn't even be noticed on the higher level of the API. Is this better?
Does anyone have a better suggestion?
Bookmarks