[Qt-qml] Custom QML components
Charley Bay
charleyb123 at gmail.com
Sun Oct 24 19:43:22 CEST 2010
Adriano spaketh:
> I've added a small project in the open components:
>
> http://gitorious.org/qmlarsenal
> http://developer.qt.nokia.com/wiki/QtQuickOpenComponents
>
> It can be useful for someone.
Thanks for posting -- more ideas/examples would help a lot
with QML adoption, IMHO.
Question: What is your convention regarding "QML_DECLARE_TYPE()"?
For example, I don't see it in your "Ellipse.h" for the QDeclarative
derived item, so where would you recommend putting that?
I've been putting QML_DECLARATIVE_TYPE(MyNewClass)
at the bottom of "MyNewClass.h", outside the class definition
and am curious what other people are doing.
Finally, I notice you use "Q_SIGNALS:" in your C++ header,
instead of "signals:". Is this only for Boost compatibility, and would
that ever be used for a QDeclarative-derived item? (Again, I'm
trying to understand convention.)
Nice components.
Thanks!
--charley
More information about the Qt-qml
mailing list