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
Post a Comment