On Tuesday, 8 June 2021 13:57:53 PDT Jason H wrote:
> Which is neiher what I acually had but performs the same bad conversion as
> what I had. I am not sure why the QVariantList vs QList have different
> fidelity - the one with more fidelity - QList - actually has has less
> specificity.
Because t
Yeah, in coming up with a minimal example, I was a little too far from my example, but it all holds. My actual code was this:
QList letters {
{{"a",1}},
{{"b",2}},
{{"c",3}}
};
but can be modified to:
QVariantList letter
> Sent: Tuesday, June 08, 2021 at 4:23 PM
> From: "Jason H"
> To: "interestqt-project.org"
> Subject: [Interest] QJsonDocument::fromVariant failing with list
>
> I'm having trouble with QJsonDocument::fromVariant() is not handling arrays:
>
> QVariant list;
>
> QList letters {
>
Most likely the QJson doesn’t known what to do with your QList<> type object.
You should put those object into a QVariantList, right now you have a
QVariantList that contain a QList as first element. You should convert the
Qlist to a QVariant (not sure you want 2 level deep array, but right now
I'm having trouble with QJsonDocument::fromVariant() is not handling arrays:
QVariant list;
QList letters {
QVariantMap {{"a",1}},
QVariantMap {{"b",2}},
QVariantMap {{"c",3}}
};
list.setValue
Hello all,
We would like to hear what you have to say regarding the learning solutions
about Qt and QML. Please check out my blog post at
https://www.qt.io/blog/learning-solutions-survey and give your honest feedback
by clicking the link to the survey. Thanks in advance!
Results from the survey
Hi,
Have you tried using cmake? It might work, even if wasm won’t be officially
supported again before 6.2. Compiling qt from current development HEAD and
using that to cross-compile to wasm should work, though, if living on the
bleeding edge is ok :)
Cheers,
David Skoland
On 7 Jun 2021, at