[Interest] QML TextArea : Wrapping placeholder text?

Cathal Tummon (ctummon) ctummon at cisco.com
Fri Jan 27 12:00:22 CET 2023

Hi all,

Just wondering if there is a recommended way of getting the placeholder text<https://doc.qt.io/qt-5/qml-qtquick-controls2-textarea.html#placeholderText-prop> of a TextArea to word wrap?
I assume it will have to be some combination of TextMetrics and manually calculating where to add new line characters?
(My google and forum/doc searches are not proving very fruitful)

Many thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230127/2202cf8a/attachment.htm>

More information about the Interest mailing list