Paint.DrawText (gb.qt4)

Static Sub DrawText ( Text As String [ , X As Float, Y As Float, Width As Float, Height As Float, Alignment As Integer ] )

Draws the specified text.

If you specified the optional parameters, then the text is constrained to the given rectangle, and aligned according to the Alignment parameter.

It is faster to draw text with that method than using Paint.Text then Paint.Fill.