Re: [Interest] Avoiding COW with Qt Containers.

2018-05-18 Thread Giuseppe D'Angelo
Il 18/05/2018 21:27, Jason H ha scritto: I've got a QVariantMap that contains QVariantMaps. (I kinda posted about this Wednesday, when I was having a few issues at the same time). I'm essentially trying to do map["a"]["b"]["c"] = QPoint(0,0); However, because I'm using QVariant maps, I have to

[Interest] Avoiding COW with Qt Containers.

2018-05-18 Thread Jason H
I've got a QVariantMap that contains QVariantMaps. (I kinda posted about this Wednesday, when I was having a few issues at the same time). I'm essentially trying to do map["a"]["b"]["c"] = QPoint(0,0); However, because I'm using QVariant maps, I have to do: QVariantMap a = map["a"].toMap(); QVar