2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-11-16 14:39:45 +00:00
|
|
|
|
2012-07-30 09:09:23 +00:00
|
|
|
#include <QtGui>
|
|
|
|
#include <QtQuick>
|
2011-11-16 14:39:45 +00:00
|
|
|
|
2012-07-30 09:09:23 +00:00
|
|
|
#include "beziercurve.h"
|
2011-11-16 14:39:45 +00:00
|
|
|
|
2012-07-30 09:09:23 +00:00
|
|
|
//! [1]
|
2011-11-16 14:39:45 +00:00
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
QGuiApplication app(argc, argv);
|
|
|
|
|
|
|
|
QQuickView view;
|
2013-02-28 11:28:16 +00:00
|
|
|
QSurfaceFormat format = view.format();
|
2012-12-12 19:11:12 +00:00
|
|
|
format.setSamples(16);
|
|
|
|
view.setFormat(format);
|
2012-12-11 13:17:34 +00:00
|
|
|
view.setSource(QUrl("qrc:///scenegraph/customgeometry/main.qml"));
|
2011-11-16 14:39:45 +00:00
|
|
|
view.show();
|
|
|
|
|
2017-06-20 14:16:51 +00:00
|
|
|
return app.exec();
|
2011-11-16 14:39:45 +00:00
|
|
|
}
|
2012-07-30 09:09:23 +00:00
|
|
|
//! [1]
|