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

Setting property based on role

$
0
0
Its the ‘property’ part I want to call dynamically. I.e. in my class I’ve got properties named, “key”, “value”, “section”. The table then displays those values. Role in this case contains one of those values and so I want to set the appropriate property based on that role. If I was using the ListModel I would be able to do this by calling setProperty on the model. You did give me an idea though. Maybe I can expose the QObject::setProperty method to QML

Viewing all articles
Browse latest Browse all 4972

Trending Articles