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

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -