// Copyright (C) 2017 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause #include #include #include #include #include #include #include int main(int argc, char* argv[]) { QGuiApplication app(argc, argv); QQmlEngine engine; #ifdef Q_OS_MACOS engine.addImportPath(app.applicationDirPath() + QStringLiteral("/../PlugIns")); #endif QQmlComponent component(&engine); QQuickWindow::setDefaultAlphaBuffer(true); component.loadUrl(QUrl("qrc:/qt/qml/window/window.qml")); if ( component.isReady() ) component.create(); else qWarning() << component.errorString(); return app.exec(); }