[Qt-interest] Rotation of a graphicsItem
Sujan Dasmahapatra
sdh at lmglasfiber.com
Mon Jun 29 14:36:13 CEST 2009
I want my graphicsitem to rotate with respect to the scene
coordinate...its rotating with respect to its local coordinate...Please
tell me in detail how would implement it.
Kind regards,
Sujan Dasmahapatra
From: Chandru... [mailto:sekarwagmare at gmail.com]
Sent: Monday, June 29, 2009 2:56 PM
To: Sujan Dasmahapatra
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Rotation of a graphicsItem
see mapToGlobal ,
QPointF QGraphicsItem::mapToScene ( const QPointF & point ) const
this will help ..
On Mon, Jun 29, 2009 at 2:51 PM, Sujan Dasmahapatra
<sdh at lmglasfiber.com> wrote:
Dear Friends
For rotating a graphicsitem about an arbitrary point(x,y)
I am doing like this
geometry->translate(xc,yc);
geometry->rotate(angle);
geometry->translate(-xc,-yc);
but its rotating about the point on the graphicsitem itself I want to
roate it with respect to view coordinate system.what I am doing wrong
here.
Kind regards,
LM Glasfiber R&D (India) Pvt. Ltd.
Sujan Dasmahapatra
Project Engineer - CFD
Telephone: +91 80 66470248
Mobile:
E-mail: sdh at lmglasfiber.com
--------------------------------------------------------------
This e-mail and any attachments are confidential. If you are not the
named or intended recipient, please notify the sender immediately and do
not disclose the contents to any other person, use it for any purpose or
store or copy the information in any medium. Any unauthorized
disclosure, use or storage is prohibited and might be unlawful.
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
--
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090629/a1c3a6e1/attachment.html
More information about the Qt-interest-old
mailing list