QStringListModel model; model.setStringList({"Item 1", "Item 2", "Item 3"}); engine.rootContext()->setContextProperty("myModel", &model);