mirror of https://github.com/qt/qtdoc.git
21 lines
374 B
C++
21 lines
374 B
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
#include <QApplication>
|
|
#include <QQuickView>
|
|
#include <QQmlContext>
|
|
|
|
//![0]
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication app(argc, argv);
|
|
|
|
QQuickView view;
|
|
view.setSource(QUrl("qrc:/main.qml"));
|
|
view.show();
|
|
|
|
return app.exec();
|
|
}
|
|
//![0]
|
|
|