mirror of https://github.com/qt/qt3d.git
20 lines
447 B
C++
20 lines
447 B
C++
// Copyright (C) 2019 Klaralvdalens Datakonsult AB (KDAB).
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
|
|
|
#include <QGuiApplication>
|
|
#include <QQuickView>
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
QGuiApplication app(argc, argv);
|
|
|
|
QQuickView view;
|
|
|
|
view.resize(1024, 1024);
|
|
view.setResizeMode(QQuickView::SizeRootObjectToView);
|
|
view.setSource(QUrl("qrc:/main.qml"));
|
|
view.show();
|
|
|
|
return app.exec();
|
|
}
|