Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.4.0
-
None
-
Linux, Windows
Description
QPlainTextEdit::setPlaceholderText seems to only work with one line strings ... multi-line placeholder text is not rendered properly.
How to reproduce
Run following application:
#include <QApplication> #include <QPlainTextEdit> int main(int argc, char *argv[]) { QApplication a(argc, argv); QPlainTextEdit editor; editor.setPlaceholderText("Hello\nWorld\n!"); editor.show(); return a.exec(); }
At least for Windows and Linux, only 'Hello' will be rendered properly (see screenshot).
Attachments
Issue Links
- is duplicated by
-
QTBUG-53996 Multiline placeholder text in QPlainTextEdit broken
-
- Closed
-
-
QTBUG-61875 QPlainTextEdit: long placeholder text doesn't auto-wrap
-
- Closed
-
- relates to
-
QTBUG-111352 Placeholder in qml does not support word wrap
-
- Reported
-