On Wednesday, 9 June 2021 10:21:28 PDT Jason H wrote:
> > Stop using QVariantMapList. You want a QVariantMap.
>
> I think you meant QVariantList?:
> QVariantMap map {
>{"err", QVariant()},
>{"letters", QVariantList {
> QVariantMap {{"a",1}},
> QVariantMap {{"b",2}},
> QVari
It seems like you need an event bus (where the sender matter or not, could
simply be the event sender id). You then could register to listen to even from
a particular source only or any source depending on your requirement. The any
sender is not really possible with the Signal Slot unless you ha
I'm working on a daemon that needs to stay flexible/tweakable. I get
lots of random requirements in the form of "system needs to do X when Y
happens and if conditions A B and C are met".
Qt's doc and examples seems to exclusively encourage putting signals in
each component's class definitions.
> Sent: Wednesday, June 09, 2021 at 10:48 AM
> From: "Thiago Macieira"
> To: interest@qt-project.org
> Subject: Re: [Interest] QJsonDocument::fromVariant failing with list
>
> On Wednesday, 9 June 2021 07:28:08 PDT Jason H wrote:
> > One hack I would workfor me is a new class, QVariantMapList, (
On Wednesday, 9 June 2021 07:23:42 PDT Jason H wrote:
> That is what I was expecting. I thought they were just a typedef? (Though I
> am lying there, I know QStringList inherits from QList) The
> instant case of QList is just a typedef though, so I am confused
> as why it wasn't working. I thought
On Wednesday, 9 June 2021 07:28:08 PDT Jason H wrote:
> One hack I would workfor me is a new class, QVariantMapList, (List of
> QVariantMaps) which is really all I need at the moment, unless there'd be a
> need for QVariantListList too? (That's a terrible name though)
>
> Ultimately, I just want t
On Wednesday, 9 June 2021 07:15:37 PDT Jérôme Godbout wrote:
> I understand the homogenous part when you do decoding, but encoding to json
> should support the homogenous, isn’t? why not? I understand that the decode
> of that json would alter the type.
>
> QList • encode json • [{‘a’: ‘b’}, {‘c’:
One hack I would workfor me is a new class, QVariantMapList, (List of QVariantMaps) which is really all I need at the moment, unless there'd be a need for QVariantListList too? (That's a terrible name though)
Ultimately, I just want to express JSON as closely as I can in C++.
Ideally:
QVar
> Sent: Wednesday, June 09, 2021 at 3:34 AM
> From: "Allan Sandfeld Jensen"
> To: interest@qt-project.org
> Cc: "Thiago Macieira"
> Subject: Re: [Interest] QJsonDocument::fromVariant failing with list
>
> On Dienstag, 8. Juni 2021 23:47:50 CEST Thiago Macieira wrote:
> > On Tuesday, 8 June 2021
I understand the homogenous part when you do decoding, but encoding to json
should support the homogenous, isn’t? why not? I understand that the decode of
that json would alter the type.
QList • encode json • [{‘a’: ‘b’}, {‘c’:’d’}] • decode json •
QList
Should be possible as long as QList whe
On Wednesday, 9 June 2021 00:34:40 PDT Allan Sandfeld Jensen wrote:
> > QList is not a type, it's a template. Neither QVariant nor QJsonDocument
> > can know all possible QList instantiations. So they have coded only a few
> > (QVariantList and QStringList only, possibly QVector and
> > QVector in
Hi,
I have one improvement you could implement. Some time ago, I have
tried to reach out to the Qt Edu Team via
https://www.qt.io/qt-for-educational-program. I tried several times
over a couple of months through the form on that site and never got a
response. I then I turned to the Qt in Education
On Dienstag, 8. Juni 2021 23:47:50 CEST Thiago Macieira wrote:
> 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
13 matches
Mail list logo