You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
Hello!
I have QVariant field1 within Q_GADGET (JSON serialization). This field contain QPair<int,int> (for example). field1 can contain some gadgets, each one is linked with Gadget_type enum. Gadget contains Gadget_type field2 (enum which depicts actual data type).
I've added all typical metatype registration stuff, including QMetaType::registerConverter. The result field value is in quotes: "field1":"[1,2]". The problem is linked with deserialization exception:
Failed to deserialize with error: Failed to convert deserialized variant of type QString to property type QVariant. Make shure to register converters with the QJsonSerializer::register* methods.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello!
I have
QVariant field1
within Q_GADGET (JSON serialization). This field containQPair<int,int>
(for example). field1 can contain some gadgets, each one is linked withGadget_type
enum. Gadget containsGadget_type field2
(enum which depicts actual data type).I've added all typical metatype registration stuff, including
QMetaType::registerConverter
. The result field value is in quotes:"field1":"[1,2]"
. The problem is linked with deserialization exception:The text was updated successfully, but these errors were encountered: