[Qt-interest] Perspective settings in qGraphicsview
Jason H
scorp1us at yahoo.com
Wed Jan 6 03:57:32 CET 2010
You need to change the transform origin from 0,0 to whatever you want. The new animation supports this via setTransformOrigin()
Or you can set the trannslatetion to translated(x,y).rotated(??).translated(-x,-y) or something like that.
----- Original Message ----
From: Parta <lists4pghanghas at gmail.com>
To: qt-interest at trolltech.com
Sent: Tue, January 5, 2010 1:02:35 PM
Subject: [Qt-interest] Perspective settings in qGraphicsview
Hi
I created a scene and a graphicsview and then added a image to it
using QGraphicsPixmapItem.
When I rotate this item along the y-axis, the results seem to suggest
that my camera or eye is placed at the right bottom corner of the
screen. I want it to be at the center. Right now I have the code a
little spread out in my application. But if the question is not clear
enough, I can write a smaller example code and post it here.
--
Thanks in advance,
Parta
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list