blob: 5b0181037994695809aba28447fdcd953d5f8250 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright (C) 2020 Klaralvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include <QGuiApplication>
#include <Qt3DQuickExtras/qt3dquickwindow.h>
int main(int ac, char **av)
{
qputenv("QT3D_RENDERER", "rhi");
QGuiApplication app(ac, av);
Qt3DExtras::Quick::Qt3DQuickWindow view;
view.setSource(QUrl("qrc:/main.qml"));
view.show();
return app.exec();
}
|