Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to set fixed width in qtextdocument?
qwe3 last edited by qwe3
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.
JonB last edited by
qwe3 last edited by
@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.