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