Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QAbstractListModel TextArea property text: display, what does it mean?
Qt 6.11 is out! See what's new in the release blog

QAbstractListModel TextArea property text: display, what does it mean?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 209 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    Uniformed6525
    wrote on last edited by
    #1

    Hello,

    I'm trying to understand the QAbstractListModel example found here:
    https://doc.qt.io/qtforpython-6.2/examples/example_declarative__editingmodel.html

    The 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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved