QHash vs QQmlPropertyMap
Unsolved
QML and Qt Quick
-
Hello,
I have been trying to do research on these and others (QMap). There is good information on QHash and QMap and when to use one over the other. However, I have not found a lot on QQmlPropertyMap. I have a program where I will store key value pairs into one of these data structures and then access the values, by key, in qml for the UI. I was going to use QHash since speed and scalability is a big consideration to my program. However, QQmlPropertyMap seems to be a much simpler way to "expose" C++ key/values to qml. I know with QHash you need to register it with the Qt metatype system, so if anybody has any suggestions on how to do that. Does QQmlPropertyMap also use a binary search through sorted keys like QMap?