[Qt-creator] How to add custom property type to the designer?
Jarvis
390246362 at qq.com
Fri Mar 23 12:41:37 CET 2018
Hello,I want to add custom property type to the designer.
I'm trying to do that:
struct TestType { int x; int y; }; Q_DECLARE_METATYPE(TestType) class ... { Q_OBJECT Q_PROPERTY(TestType Test READ Test WRITE SetTest) ... };
But the property do not appear in the designer.Property type can only be Qt's own?(and Q_ENUM、Q_FLAGS)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20180323/1ad82055/attachment.html>
More information about the Qt-creator
mailing list