I recently built up a structure using QVariantMaps and QVariantLists to convert it to JSON afterwards.
But I experienced a strange behaviour when leaving the function and the destructor of this structure has been called.
It looked like this:
If I replace the innerList with another QVariantMap or anything else, it workes fine. Is this a problem on my side or is this a bug in Qt? I also tried to clear all QVariantMaps and QVariantLists myself starting from the inner to outer before I delete them, but the same problems comes up..
Any ideas? ;)