Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

TextArea in ListView delegate

$
0
0
Hi, I have a little problem. I’m using a ListView with a QAbstractItemModel. In the delegate I want to use a TextArea to edit the model data. TextArea {     text: model.text     onTextChanged: model.text = text } But the onTextChanged signal gets emitted, befor the TextArea gets filled with the model data. This clears all initial data in the model for the text role. Has anyone an idea, how to first load the model data and the connect the onTextChanged signal?

Viewing all articles
Browse latest Browse all 4972

Trending Articles