QML MaximumBlockCount on TextArea
Unsolved
QML and Qt Quick
-
Hi,
I've linked below a discussion about maximum line count for textarea. Unfortunately I'm not able to define it for the TextArea. I'm not sure has something changed in the previous 2 years which makes it impossible to use maximumblockcount for TextArea nowadays or is it just that I don't understand something fundamental here? Could someone provide a simple example how it is meant to be defined?
Thanks in advance,
Tuukka -
@JonB
I somehow imagined it should be usable "simply" like below but MaximumBlockCount can't be used from textDocument at least like this:TextArea { id: ticketTextArea textDocument.MaximumBlockCount: 3 Layout.preferredHeight: 150 Layout.fillWidth: true Layout.maximumHeight: 200 Layout.rowSpan: 3 }
Thanks for your patience :)