[Qt-qml] Reusable components
simon.turvey at nokia.com
simon.turvey at nokia.com
Wed Sep 29 16:27:01 CEST 2010
Hi all,
Is there a way of creating reusable components within QML where those components might be further customized by the developer without cut-and-paste of the original code? The particular use case that I am imagining is a slide-out 'drawer' component where the drawer contents might differ.
Two possibilities spring to mind:
1) A 'delegate' property type to which could be assigned another component that was responsible for drawing within the parent or within a designated area.
2) An inheritance mechanism.
Have others been thinking about this need? Is this too much to expect from QML and so a point where one would drop to C++ and create a new component there?
Regards,
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100929/095ff994/attachment.html
More information about the Qt-qml
mailing list