Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(int argc, char *argv[])
- {
- // Set current path as path to executable
- QDir().setCurrent(QFileInfo(argv[0]).absolutePath());
- qDebug() << QDir().currentPath();
- // Set path to local plugins
- QCoreApplication::addLibraryPath("./plugins");
- QGuiApplication app(argc, argv);
- PTViewer viewer;
- viewer.setMainQmlFile(QStringLiteral("qrc:/qml/focus2/main.qml"));
- viewer.setQmlVariables();
- viewer.showExpanded();
- // viewer.showFullScreen();
- return app.exec();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement