[Interest] how to exposure QVector or QList in custom plugin

nus1998 nus1998 at yeah.net
Wed Apr 24 11:41:58 CEST 2013


 hi all,

I wrote a custom plugin which has a property for a set of colors like this:

Q_PROPERTY(QVector<QColor> color READ color WRITE setColor)

however, I can't found the color property in designer.

I checked the help file, it seems the correct method is use QVector instead of QVector<QColor>, but in this method I can't compile the program.

any comment?

thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130424/f0a4b03f/attachment.html>


More information about the Interest mailing list