Hi,

I have a QTextEdit with fixed width and wrap mode set to setLineWrapMode(QTextEdit::WidgetWidth);

Now, when user edits the text in this box, i need to increase the height of this QTextEdit so that the vertical scrollbar never appears and all the text entered could be seen.

I have connected a slot to the textChanged() signal but not sure how exactly can the height be calculated.

Any ideas on how I can implement this one?

Thanks a lot.