PDA

View Full Version : Is there any alternative of (C# :public SizeF MeasureString(string, Font); ) in Qt ??



kunalnandi
19th December 2007, 05:54
Hello,

I want to use this function in my project.. but i don't find any alternative of this function in Qt..
if any one is aware of this thn pls reply me...


Description of the C# function :



Graphics.MeasureString Method (String, Font)
Measures the specified string when drawn with the specified Font object.

public SizeF MeasureString(
string text,
Font font
);



Thanks & Regards
Kunal Nandi

jpn
19th December 2007, 06:39
Hi. See QFontMetrics.