2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#include "window.h"
|
|
|
|
|
2012-12-19 10:27:10 +00:00
|
|
|
#include <QApplication>
|
2014-08-02 17:42:15 +00:00
|
|
|
#include <QSurfaceFormat>
|
2012-12-19 10:27:10 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication app(argc, argv);
|
2014-08-02 17:42:15 +00:00
|
|
|
|
|
|
|
QSurfaceFormat fmt;
|
|
|
|
fmt.setSamples(4);
|
|
|
|
QSurfaceFormat::setDefaultFormat(fmt);
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
Window window;
|
|
|
|
window.show();
|
|
|
|
return app.exec();
|
|
|
|
}
|