[Qt-interest] Rotate problem
Sujan Dasmahapatra
sdh at lmglasfiber.com
Mon May 4 08:11:13 CEST 2009
Dear Friend I think it's a Qt bug..I am trying to rotate a graphicsItem
about (0,0) but it's rotating only for once.....2nd time onwards it's
not rotating...what could be the reason plss help me..
angleString = angleLE->text();
xcString = xcLE->text();
ycString = ycLE->text();
angle = angleString.toDouble();
xc = xcString.toDouble();
yc = ycString.toDouble();
geometry->setTransform(QTransform().translate(xc,
yc).rotate(angle).translate(-xc, -yc));
console->append("\n");
console->append("geometry is rotated by
" + angleString + " about point ( " + xcString + ", " + ycString + "
)");
console->append("\n");
but it's rotating for the first time if I click 2nd time it's not
rotating.
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 <mailto: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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090504/3f4661e4/attachment.html
More information about the Qt-interest-old
mailing list