Skip to content

QCborValue: fix incorrect to{Array,Map} when the value is empty

When QCborValue referred to an empty array or map, toArray() and toMap()
would respectively return the default value instead of the empty object,
as expected.

Pick-to: 6.2 6.3
Change-Id: I5e52dc5b093c43a3b678fffd16b60456d0037ad7
Reviewed-by: Edward Welbourne <>
(cherry picked from commit de6ced66920600e659dbaa2509526a3bcb0b3360)

I stumbled over this via qt/backports-tracker#1944 (closed) which cites this commit, even if it has no Pick-to 5.15. Code looks exactly the same; probably should have been picked?

Edited by Andreas Sturmlechner

Merge request reports