PDA

View Full Version : Help with scene



justin123
2nd July 2010, 04:28
How do I make the top-left corner (0,0) instead of the center being (0,0).

tbscope
2nd July 2010, 04:43
Did you try setting a scene rect?
Example: (0,0,640,320)

I can't check right now if this solves it but I guess it will.
If not, you need to translate the items.

If you don't set a scene rect, the scene rect will be the largest bounding box of all the items in it.
This means, that if there are no items in the scene yet, and you choose to center the scene in the view, all new items are created at the center (if you don't use the position to set a specific position. I guess the scene grows around the center in both positive and negative direction. Therefor, if you set a scene rect at the beginning, it might solve some things.

Als, as mentioned already, try not the set the scene at the center of the view but in the top left corner.