blob: e987147bbb598b401062730dcfa45c208e05194a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright (C) 2014 Gunnar Sletta <gunnar@sletta.org>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include <QGuiApplication>
#include <QtQuick/QQuickView>
#include "xorblender.h"
int main(int argc, char **argv)
{
qputenv("QSG_RHI", "1"); // ### Qt 6 remove, this will be the default anyway
QGuiApplication app(argc, argv);
QQuickView view;
view.setResizeMode(QQuickView::SizeRootObjectToView);
view.setSource(QUrl("qrc:///scenegraph/twotextureproviders/main.qml"));
view.show();
return QGuiApplication::exec();
}
|