summaryrefslogtreecommitdiffstats
path: root/examples/declarative/dial/main.cpp
blob: b65c9ffb8ef33db4ad0e3ac26adc599844f0e201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <QApplication>
#include <QUrl>
#include <qmlview.h>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QmlView *canvas = new QmlView;
    canvas->setUrl(QUrl("qrc:/dial.qml"));
    canvas->execute();
    canvas->resize(210,240);
    canvas->show();

    return app.exec();
}