Qt 6.11 is out! See what's new in the release
blog
QAbstractListModel TextArea property text: display, what does it mean?
-
Hello,
I'm trying to understand the QAbstractListModel example found here:
https://doc.qt.io/qtforpython-6.2/examples/example_declarative__editingmodel.htmlThe MovingRectangle.qml file contains a TextArea, whose text property is set to "display":
TextArea { id: zone anchors.centerIn: parent text: display /* ^^^^^^^ */ onTextChanged: model.edit = text }From my understanding, it enables model.py to edit the text contents of the TextArea. However, I did not manage to find much information regarding this "text: display", aside from (probably) the Qt::DisplayRole...
Can someone please enlighten me as to what is this "display"? Is it a variable? A keyword?
Thanks in advance for any responses.