Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

A good way to allow editing of Model items?

$
0
0
hey i’ve been learning normal Qt for over 7 months and i only just started learning some Qml after hearing so much about it. I’ve been trying to get a better understanding of data models and views in both normal Qt and Qml. Following the standard Qml approach of using a Rectangle and Text element in the delegate, what is a good way to let a user edit the value of text in the delegate’s Text element? I was wondering is this where the normal Qt will come in? as in don’t use qml’s ListModel, but instead a model from Qt ? but then i realized the editing still needs to take place on the qml screen, so im still wondering how i can let a user edit the model’s data item/role’s value? Also ive heard its better to subclass a Qt model if the application is too complex for Qml. Could anyone please give me an idea of such a situation?

Viewing all articles
Browse latest Browse all 18427

Trending Articles