diff options
Diffstat (limited to 'examples/quick/window/main.cpp')
| -rw-r--r-- | examples/quick/window/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/quick/window/main.cpp b/examples/quick/window/main.cpp index baf31bc846..7d2b0903fd 100644 --- a/examples/quick/window/main.cpp +++ b/examples/quick/window/main.cpp @@ -64,6 +64,10 @@ int main(int argc, char* argv[]) // Add the qrc root as QML import path so that the "shared" module can be found. engine.addImportPath(QStringLiteral(":/")); +#ifdef Q_OS_MACOS + engine.addImportPath(app.applicationDirPath() + QStringLiteral("/../PlugIns")); +#endif + QQmlComponent component(&engine); QQuickWindow::setDefaultAlphaBuffer(true); component.loadUrl(QUrl("qrc:///window/window.qml")); |
