Qt 6.11 is out! See what's new in the release
blog
Expose a List or Array of QDeclarativePropertyMap
QML and Qt Quick
2
Posts
2
Posters
1.2k
Views
1
Watching
-
Hi Everybody,
I want to expose a list of QDeclarativePropertyMaps.
The exposing of QDeclarativePropertyMap works fine, but I need a container which holds the different QDeclarativePropertyMaps and can be accessed by index from QML and C++.I tried this:
@ QDeclarativePropertyMap map;
map.insert("mode", 0x00);
map.insert("effect", 0x00);
map.insert("effectMax",0x01);QList<QDeclarativePropertyMap> list; list.append(map);@Thanks!
-
Have a look at the solution posted "here":http://qt-project.org/forums/viewthread/26191/P15.