2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2017 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2014-03-31 13:59:18 +00:00
|
|
|
|
|
|
|
#include <QGuiApplication>
|
2020-05-06 16:56:01 +00:00
|
|
|
#include <QQuickWindow>
|
2014-11-25 10:38:46 +00:00
|
|
|
#include "window_singlethreaded.h"
|
2014-03-31 13:59:18 +00:00
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
QGuiApplication app(argc, argv);
|
2014-11-25 10:38:46 +00:00
|
|
|
|
2020-05-06 16:56:01 +00:00
|
|
|
// only functional when Qt Quick is also using OpenGL
|
2022-02-09 14:20:57 +00:00
|
|
|
QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);
|
2017-09-05 11:51:52 +00:00
|
|
|
|
2020-05-06 16:56:01 +00:00
|
|
|
WindowSingleThreaded window;
|
|
|
|
window.resize(1024, 768);
|
|
|
|
window.show();
|
2014-11-25 10:38:46 +00:00
|
|
|
|
2014-03-31 13:59:18 +00:00
|
|
|
return app.exec();
|
|
|
|
}
|