How do I determine the height of a QTextDocument?

Posted by Jen on Stack Overflow See other posts from Stack Overflow or by Jen
Published on 2010-06-11T06:13:36Z Indexed on 2010/06/11 6:23 UTC
Read the original article Hit count: 216

Filed under:
|
|
|

Given a specific width, I want to find out the height of a QTextDocument. In other words, if the QTextEdit that contains the QTextDocument is w wide, what is its minimum height h in order to fully display the document without the need for scrollbars?

© Stack Overflow or respective owner

Related posts about qt

Related posts about qt4