I've got a QTextEdit inside a sub-class of QWidget. I just want to display some simple (rich) text. I'd like the QTextEdit to scale to it's contents and the window around it around it to scale too.
I think the problem is that txtEdit->sizeHint() is not influenced by the (small) amount of text in the QTextEdit. Is there any way of telling QTextEdit to occupy the minimum space possible for the given text formatting?Qt Code:
{ //...etc private: QTextEdit* txtEdit; } //the constructor { }To copy to clipboard, switch view to plain text mode
thanks
K
Bookmarks