Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
5.13.1
-
-
5c808073af5b8f1290602fcccf60666c9a3682f8 217a25a6bf59bb9ce0845267f46244fedd8bcaaa
Description
It is currently possible to any QList<T> stored as a QVariant using QSequentialIterable - the same is possible for QHash and QMap via QAssociativeIterable.
It would be nice if we could also write to these containers, i.e. append/insert elements and change the value of exiting elements. An example of how this could look would be (made up names and values):
QVariant variant(QList<int>({1, 2, 3})); auto writer = variant.value<QSequentialIterableWriter>(); writer.append(QVariant(42)); writer.insert(0, QVariant(10)); writer.set(3, QVariant(0));
Attachments
For Gerrit Dashboard: QTBUG-79170 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
296890,7 | Add QMetaContainer class | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |