I'm trying to use a QPlainTextEdit but by default it go back at the next line when one is too long.
Is there anyway way to do a horizontal overflow (so to have a scrollbar instead and that the line continue 'endlessly') ?
I'm trying to use a QPlainTextEdit but by default it go back at the next line when one is too long.
Is there anyway way to do a horizontal overflow (so to have a scrollbar instead and that the line continue 'endlessly') ?
QPlainTextEdit has the method setLineWrapMode(QPlainTextEdit::LineWrapMode mode)
you can use to set this property.
setLineWrapMode(QPlainTextEdit::LineWrapMode mode)
#include <QPlainTextEdit>
QPlainTextEdit plainText;
plainText.setLineWrapMode(QPlainTextEdit::LineWrapMode::NoWrap);