#include #include #include #include #include #include #include #include #include "ListData.h" int main(int argc, char** argv){ QString QMLFile; for(int i=1; irootContext()->setContextProperty("cppdata", &data); qDebug() << "Load QML File:" << QMLFile; base.setSource(QUrl::fromLocalFile(QMLFile)); qDebug() << "Start Event loop"; base.show(); int ret = A.exec(); qDebug() << " - Finished"; return ret; }