The id of the model is the name of the property you export from within C++ using QDeclarativeContext. You can of course provide an alias to it using regular QML means.
QDeclarativeContext *context = view.rootContext();
context->setContextProperty("FileModel", &proxy); // "FileModel" is the id of the model
QDeclarativeContext *context = view.rootContext();
context->setContextProperty("FileModel", &proxy); // "FileModel" is the id of the model
To copy to clipboard, switch view to plain text mode
In the example above "FileModel" represents an object and not a type. In your code "MemoryModel" is the id of your model object. If you want to have more memory models you need to export each and every one in C++ using different property names.
Bookmarks