Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89359

QtWebView fails to instantiate when imported in two locations with different versions

    XMLWordPrintable

    Details

    • Platform/s:
      macOS

      Description

      I attached an example project for reproduction:

      When trying to instantiate a WebView in two different QML components i ended up with two import statements that are different only in the imported version:

      • Page1Form.ui.qml:  import QtWebView 1.15
      • Page2Form.ui.qml:  import QtWebView 1.13

      In this setup, the when switching to a page the webview works as expected, but whenever I try to open the other page, it fails with error:

      > QQmlComponent: Component is not ready
      > qrc:/main.qml:60:5: QML StackView: push: qrc:/Page2Form.ui.qml:3 module "QtWebView" plugin "declarative_webview" not found

      When I make sure the version is the same it just works. 

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            stromme Christian
            Reporter:
            hrabowski Maximilian Hrabowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes