c++ - How to convert custom object to QVariant -


i have class called segment contains few qstrings , meant subclassed.

i created std::list of segment objects , convert list qvariantlist. begins converting individual segment objects qvariant objects, how can accomplish this?

i think you're looking q_declare_metatype(segment);.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -