Hi All

I've go a model coming from C++ (Inhertited from QAbstractListItemModel) 
that is basically a list of contact for an instant messenger.

App's UI, however, is to include one more special contact representing 
the current user (it makes sense on our devices with extremely 
discouraged chrome elements such as extra headers, scrollbars, etc).

I can certainly, modify the model on C++ side, yet.. this special item 
is really just about the UI representation and therefore it seems very 
logical to me to perform such a modification in QML side. Is there a way 
to somehow inject an item into a model coming from C++? Or maybe there 
is a way to apply some rules to C++ model and make a QML ListModel or 
something like that as a result?

Or how would you do it?

Cheers,
Artem.

P.S.
In most of cases there are going to be just a few elements in the model 
so cloning of model if needed shouldn't effect performance and memory 
use much
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to