diff options
Diffstat (limited to 'examples/hybridshell/main.cpp')
-rw-r--r-- | examples/hybridshell/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/hybridshell/main.cpp b/examples/hybridshell/main.cpp index d57966f..8c7e9b0 100644 --- a/examples/hybridshell/main.cpp +++ b/examples/hybridshell/main.cpp @@ -41,11 +41,10 @@ int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); - qmlRegisterType<Shell>("Qt.labs", 1, 0, "HybridShell"); + qmlRegisterType<Shell>("QtWebChannel.Examples", 1, 0, "HybridShell"); QQuickView viewer; - viewer.engine()->addImportPath(app.applicationDirPath() + QStringLiteral("/../../src/")); - viewer.setSource(QUrl::fromLocalFile(QStringLiteral(SOURCE_DIR) + QStringLiteral("/main.qml"))); + viewer.setSource(QStringLiteral("qrc:/main.qml")); viewer.show(); return app.exec(); |