QSettings with Symbian Anna: QVariant::save: unable to save type 136.
I’m keeping getting this message every time I save settings on Symbian Anna device. The value is successfully saved, no worries about that. Still I wonder why I’m getting this message?
All type above 127 are user type, and so is 136. You need to provide QDataStream operator overloads for your custom class.
Ah, the 136 is not a QVariant type enum, but a QMetaType type.
136 is QMetaType::QObjectStar, which denotes a pointer to a QObject. Those cannot be serialized in a sane way. The address the pointer holds, most probably isn’t valid on time the settings are read again. And serializing the object itself doesn’t make sense too.
And no, the value is not saved!