Re: [Interest] [EXTERNAL] Re: Send Data to JavaScript

2021-04-14 Thread Giuseppe D'Angelo via Interest
Il 14/04/21 16:15, Jérôme Godbout ha scritto: Yeah that would be a pain, but if it work you can try to reduce the QVariant usage to a minimum from that point. 1. QVariantMap 2. QMap 3. QMap 4. QMap 5. QMap> 6. QMap> See up to where you can reach before it fail, it will tell you which da

Re: [Interest] [EXTERNAL] Re: Send Data to JavaScript

2021-04-14 Thread Jérôme Godbout
M To: qt qt Subject: Re: [Interest] [EXTERNAL] Re: Send Data to JavaScript On 12.04.2021 20:48, Jérôme Godbout wrote: Have you tried with a QVariantMap for your Q_PROPERTY instead? Will be dull to convert from QVAriant to list and string for each values, but will probably work. I've not

Re: [Interest] [EXTERNAL] Re: Send Data to JavaScript

2021-04-13 Thread John Schneiderman
On 12.04.2021 20:48, Jérôme Godbout wrote: Have you tried with a QVariantMap for your Q_PROPERTY instead? Will be dull to convert from QVAriant to list and string for each values, but will probably work.     I've not tried using that, but looking at it, wouldn't it mean that I'd have to co

Re: [Interest] [EXTERNAL] Re: Send Data to JavaScript

2021-04-13 Thread John Schneiderman
On 12.04.2021 16:12, Giuseppe D'Angelo via Interest wrote: But a similar consideration applies: do you have any documentation telling you how datatypes in C++ are mapped to datatypes in JS -- and thus if your QMap is supposed to be supported, or if instead you need to "massage" it a bit?     T

Re: [Interest] [EXTERNAL] Re: Send Data to JavaScript

2021-04-12 Thread Giuseppe D'Angelo via Interest
Il 12/04/21 15:56, John Schneiderman ha scritto: On 12.04.2021 15:35, Giuseppe D'Angelo via Interest wrote: Are you sure about the transformation? Only certain data types are supported for the C++ <-> QML data exchange, and I don't believe the one you're using is: I'm not using QML in this part

Re: [Interest] [EXTERNAL] Re: Send Data to JavaScript

2021-04-12 Thread John Schneiderman
On 12.04.2021 15:35, Giuseppe D'Angelo via Interest wrote: Are you sure about the transformation? Only certain data types are supported for the C++ <-> QML data exchange, and I don't believe the one you're using is: I'm not using QML in this particular case. I'm using QWebEngine and QWebChan