[Qt] Rotated font

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Wed Nov 15 20:55:39 CET 2006

On 11/15/06, Hess, Philip J <pjhess at purdue.edu> wrote:
> However, the TRotatedLabel control I'm porting to LCL uses a different way
> of drawing the rotated text (method 2 below) and this does not work with the
> Qt widgetset, although it works fine with the win32 widgetset. I wonder if
> the ExtTextOut API function is not fully working with Qt widgetset yet.
> Here's the test code, using both methods of drawing rotated text:

Canvas.TextOut uses ExtTextOut to draw the text. Maybe it´s a problem
setting the font handle.

Can you test this variant:

   SelectObject(Canvas.Handle, MyFont);
   ExtTextOut(Canvas.Handle, 100, 100, ETO_CLIPPED,
              @ARect, 'Rotated text', 12, nil);  //Method 2 - does not work

Felipe Monteiro de Carvalho

More information about the Qt mailing list