PDA

View Full Version : Zoom Options



Kapil
9th March 2006, 11:50
Hi,

I have created a chip architecture with the help of rectangles and lines..
That is my base design..

Now in my project i have included few zoom options like zoom in the window or zoom out.. these are similar to any zoom options provided when handling images...

Now what i want is that whenever i click on the zoom in, the window gets expanded by 30%.. and goes on till three more levels..
and when i click on zoom out the window gets shrinked by the same % as it was expanded.it will act similar to any zoom options...

how do i do that in QT?

Thanking you,
Kapil

zlatko
9th March 2006, 12:11
Yes you can. Play arround QPainter::scale ( qreal sx, qreal sy )

Kapil
9th March 2006, 12:19
Thanks very much for the reply...

but i could not understand much.. Can you please suggest me a tutorial for it or some code which would help me in understanding from the implementation point of view.

with regards,
Kapil