diff --git a/src/lib/plugins/qml/api/browseraction/qmlbrowseraction.cpp b/src/lib/plugins/qml/api/browseraction/qmlbrowseraction.cpp index 20108d00e..d588efb3c 100644 --- a/src/lib/plugins/qml/api/browseraction/qmlbrowseraction.cpp +++ b/src/lib/plugins/qml/api/browseraction/qmlbrowseraction.cpp @@ -190,7 +190,7 @@ void QmlBrowserActionButton::positionPopup(ClickController *clickController) return; } - QQuickWindow *quickWindow = dynamic_cast(m_popup->create()); + QQuickWindow *quickWindow = dynamic_cast(m_popup->create(m_popup->creationContext())); if (!quickWindow) { qWarning() << "Cannot create QQuickWindow from popup"; return; diff --git a/src/lib/plugins/qml/api/sidebar/qmlsidebar.cpp b/src/lib/plugins/qml/api/sidebar/qmlsidebar.cpp index 6bb078dba..90f422415 100644 --- a/src/lib/plugins/qml/api/sidebar/qmlsidebar.cpp +++ b/src/lib/plugins/qml/api/sidebar/qmlsidebar.cpp @@ -128,7 +128,7 @@ QWidget *QmlSideBarHelper::createSideBarWidget(BrowserWindow *mainWindow) { Q_UNUSED(mainWindow) - QQuickWindow *window = qobject_cast(m_item->create()); + QQuickWindow *window = qobject_cast(m_item->create(m_item->creationContext())); if (!window) { qWarning() << "Unable to create QQuickWindow"; return nullptr; diff --git a/src/lib/plugins/qml/qmlpluginloader.cpp b/src/lib/plugins/qml/qmlpluginloader.cpp index dd22c8193..6a33bb6ec 100644 --- a/src/lib/plugins/qml/qmlpluginloader.cpp +++ b/src/lib/plugins/qml/qmlpluginloader.cpp @@ -26,7 +26,7 @@ QmlPluginLoader::QmlPluginLoader(const QString &path) void QmlPluginLoader::createComponent() { - m_interface = qobject_cast(m_component->create()); + m_interface = qobject_cast(m_component->create(m_component->creationContext())); if (!m_interface) { return;