[Kde-games-devel] Displaying a table
Guillaume Denry
guillaume.denry at gmail.com
Wed Jun 20 09:21:43 CEST 2007
2007/6/20, Ian Wadham <ianw2 at optusnet.com.au>:
>
>
> I appreciate that fonts and languages affect the required width, so
> perhaps there is also somewhere some simple function that tells
> us what size is required to display a piece of text in a given font,
> translated into the current language.
>
> Has anybody any ideas or pointers to example code?
Hi Ian!
QFontMetrics can give you a text's width and height.
Guid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-games-devel/attachments/20070620/713fec7d/attachment.html
More information about the kde-games-devel
mailing list