PDA

View Full Version : The coordinate system



avis_phoenix
17th July 2008, 19:24
Hi, i have a problem with the coordinate system

In the windows coordante the y-axis is this:
|------> X
|
|
v Y

But i need (beacause the calculates needed) this coordinate system:
^Y
|
|------>X

I can change the view with QMatrix with this instruction:

QMatrix MyMatrix;
MyMatrix.scale(1,-1);
GraphicView->setMatrix(MyMatrix);

I need this for my draws in tha scene, but i need put a text in the scene, and with this action the text also is reflected, then:

How I can change the coordinate system for my drawings and it does not to the text?

Sorry for my bad english :(

jacek
28th July 2008, 12:16
How about setting the QGraphicsItem::ItemIgnoresTransformations flag to true?