[kde-edu]: Need help with this code

Kevin Krammer kevin.krammer at gmx.at
Mon Jul 11 19:12:03 CEST 2005


On Monday 11 July 2005 16:02, Carsten Niehaus wrote:
> I am drawing a vertical line and then want to put a string below that
> line....
>
>       p->drawLine( x,0,x, m_realHeight );
>       p->save();
>       p->rotate( -90.0 );
>       p->translate( m_realHeight,0 );

You have to translate before you rotate.

See attached exampe.

Cheers,
Kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qdrawtexttest.cpp
Type: text/x-c++src
Size: 983 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-edu/attachments/20050711/cce472fa/qdrawtexttest.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-edu/attachments/20050711/cce472fa/attachment.pgp


More information about the kde-edu mailing list