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

Q_ENUMS as property variant index

$
0
0
It looks like you can only use literals to define keys. Eg: property varaint map: {     'string_literal': TestClass.Low,     1024: 'some_value' } You can access the first value like this: map.string_literal or like this: map['string_literal'] and you can access the second value like this: map[1024]

Viewing all articles
Browse latest Browse all 4972

Trending Articles