QVariant::save: unable to save type
-
struct Myclass { QString key{}; };main.cpp
qRegisterMetaType<QList<QSharedPointer<MyClass>>>();Results in
QVariant::save: unable to save type 'QList<QSharedPointer<MyClass>>' (type id: 65560)ASSERT failure in QVariant::save: "Invalid type to save", file C:\Users\qt\work\qt\qtbase\src\corelib\kernel\qvariant.cpp, line 1376That line tries to "save" an object of that type into a stream but fales.
I defined stream operators for that type aswell
Anyone knows where the error is -
struct Myclass { QString key{}; };main.cpp
qRegisterMetaType<QList<QSharedPointer<MyClass>>>();Results in
QVariant::save: unable to save type 'QList<QSharedPointer<MyClass>>' (type id: 65560)ASSERT failure in QVariant::save: "Invalid type to save", file C:\Users\qt\work\qt\qtbase\src\corelib\kernel\qvariant.cpp, line 1376That line tries to "save" an object of that type into a stream but fales.
I defined stream operators for that type aswell
Anyone knows where the error is -
struct Myclass { QString key{}; };main.cpp
qRegisterMetaType<QList<QSharedPointer<MyClass>>>();Results in
QVariant::save: unable to save type 'QList<QSharedPointer<MyClass>>' (type id: 65560)ASSERT failure in QVariant::save: "Invalid type to save", file C:\Users\qt\work\qt\qtbase\src\corelib\kernel\qvariant.cpp, line 1376That line tries to "save" an object of that type into a stream but fales.
I defined stream operators for that type aswell
Anyone knows where the error is -
R Redman has marked this topic as solved on