I've got 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?
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