[Qt-interest] trying to rotate ellipse

caius ligarius caius9090 at gmail.com
Fri Mar 18 22:11:35 CET 2011


fantastic! works! thanks.

On Fri, Mar 18, 2011 at 1:01 PM, Gabriel M. Beddingfield <gabrbedd at gmail.com
> wrote:

>
>
> On Fri, 18 Mar 2011, caius ligarius wrote:
>
>  painter.drawEllipse(QPoint(cenX, cenY), majAxis, minAxis);
>> painter.rotate(angle);
>> painter.restore();
>>
>
> I think you want:
>
> painter.save();
> painter.translate(cenX, cenY);
> painter.rotate(angle);
> painter.drawEllipse(QPoint(0, 0), majAxis, minAxis);
> painter.restore();
>
> -gabriel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110318/cfe88bb8/attachment.html 


More information about the Qt-interest-old mailing list