Hi,

Is there a way by which we can find the minimum height of a QTextEdit such that the vertical scrollbar will not appear ?

Alternately, is there a way to find the total number of lines of text available in QTextEdit?
Using this info and QFontMetrics we can probably find the ideal height.

Thanks a lot