summaryrefslogtreecommitdiff
path: root/examples/hybridshell/main.cpp
blob: 949bb65af1a99785b16be53041c23445b361d665 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <QtGui/QGuiApplication>

#include <QtQml>

#include "qtquick2applicationviewer.h"

#include "shell.h"

int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);
    qmlRegisterType<Shell>("Qt.labs", 1, 0, "HybridShell");

    QtQuick2ApplicationViewer viewer;
    viewer.setMainQmlFile(app.applicationDirPath() + QStringLiteral("/qml/hybridshell/main.qml"));
    viewer.showExpanded();

    return app.exec();
}