[Qt-interest] Finding the displayed width of rich text

John Posner jjposner at optimum.net
Sun Dec 20 23:48:43 CET 2009


John Posner wrote:
> Tony Rietwyk wrote:
>   
>> I suggest using QTextDocument with the same text.  Then use size or
>> idealSize. 
>>   
>>     
> idealSize() does the job ...
Oops! make that idealWidth().  -John





More information about the Qt-interest-old mailing list