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

_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to