Unsolved How to set fixed width in qtextdocument?
-
Hi,
I have QTextEdit object. It is not editable, readonly etc.
I don't know what text I will have on it, but I would like to have fixed width and change only height.
I tried with qtextdocument:
textEdit->document()-> something textEdit->resize(something);
but with no good results.
-
@qwe3
What about QWidget::setFixedWidth(int w) ? -
@JonB I tried it. But I don't know which height I have to set to don't need vertical scroll bar but get minimum needed height.
-