123456789101112131415161718192021 |
- #include <QtGui/QApplication>
- #include <QDeclarativeEngine>
- #include <QDebug>
- #include "qmlapplicationviewer.h"
- Q_DECL_EXPORT int main(int argc, char *argv[])
- {
- QScopedPointer<QApplication> app(createApplication(argc, argv));
- QmlApplicationViewer viewer;
- viewer.engine()->addImportPath( "qml\\CommunityModule" );
- qDebug() << "import path list:" << viewer.engine()->importPathList();
- viewer.setMainQmlFile(QLatin1String("qml/CommunityComponentsDemo/main.qml"));
- viewer.showExpanded();
- return app->exec();
- }
|