Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved No WebView plug-in found!

    QtWebEngine
    3
    7
    1171
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Pearled last edited by

      Hi,

      I made a simple crawler using Qt 5.15.0 and QML.
      It works properly when launched from QtCreator.
      But when I run it standalone, it doesn't work.

      I ran windeployqt for sure, (--release --qmldir d:\qt\5.15.0...\qml)
      and manually copied the QtWebView qml folder.
      But it still doesn't work. So I activate the console.
      It said, No WebView plug-in found!

      So I copied all of qml, plugins, and dlls into the release folder.
      I also added QT += webengine configuration.

      I have no idea what to do anymore.

      OS: Windows 10
      SDK: Qt 5.15.0 MSVC2019 x64
      Compiler: MSVC2017 (not 2019)

      Can someone help me?

      1 Reply Last reply Reply Quote 0
      • P
        Pearled last edited by

        QT += core qml quickcontrols2 webview
        ...in pro

        QtWebView::initialize();
        ...in main()

        import QtWebView 1.15
        ...in QML

        JonB 1 Reply Last reply Reply Quote 0
        • JonB
          JonB @Pearled last edited by

          @Pearled
          I do not know whether there is any difference because this is QML, but the normal first course of action for a Qt missing plug-in problem is to invoke your executable from a shell where you have previously typed in:

          set QT_DEBUG_PLUGINS=1
          

          This should cause trace output into the terminal showing where Qt is looking for what (provided this works for QML, as I said).

          P 1 Reply Last reply Reply Quote 1
          • P
            Pearled @JonB last edited by

            @JonB
            Thanks for your reply.
            I tried but still I'm not sure what the problem is.

            QFactoryLoader::QFactoryLoader() checking directory path "D:/.../plugins/webview" ...
            QFactoryLoader::QFactoryLoader() checking directory path "D:/.../platforms" ...
            QFactoryLoader::QFactoryLoader() looking at "D:/.../platforms/qdirect2d.dll"
            Found metadata in lib D:/.../platforms/qdirect2d.dll, metadata=
            {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
            "Keys": [
            "direct2d"
            ]
            },
            "archreq": 0,
            "className": "QWindowsDirect2DIntegrationPlugin",
            "debug": false,
            "version": 331520
            }

            Got keys from plugin meta data ("direct2d")
            QFactoryLoader::QFactoryLoader() looking at "D:/.../platforms/qminimal.dll"
            Found metadata in lib D:/.../platforms/qminimal.dll, metadata=
            {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
            "Keys": [
            "minimal"
            ]
            },
            "archreq": 0,
            "className": "QMinimalIntegrationPlugin",
            "debug": false,
            "version": 331520
            }

            Got keys from plugin meta data ("minimal")
            QFactoryLoader::QFactoryLoader() looking at "D:/.../platforms/qoffscreen.dll"
            Found metadata in lib D:/.../platforms/qoffscreen.dll, metadata=
            {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
            "Keys": [
            "offscreen"
            ]
            },
            "archreq": 0,
            "className": "QOffscreenIntegrationPlugin",
            "debug": false,
            "version": 331520
            }

            Got keys from plugin meta data ("offscreen")
            QFactoryLoader::QFactoryLoader() looking at "D:/.../platforms/qwindows.dll"
            Found metadata in lib D:/.../platforms/qwindows.dll, metadata=
            {
            "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
            "MetaData": {
            "Keys": [
            "windows"
            ]
            },
            "archreq": 0,
            "className": "QWindowsIntegrationPlugin",
            "debug": false,
            "version": 331520
            }

            Got keys from plugin meta data ("windows")
            loaded library "D:/.../platforms/qwindows.dll"
            QFactoryLoader::QFactoryLoader() checking directory path "D:/.../platformthemes" ...
            QFactoryLoader::QFactoryLoader() looking at "D:/.../platformthemes/qxdgdesktopportal.dll"
            Found metadata in lib D:/.../platformthemes/qxdgdesktopportal.dll, metadata=
            {
            "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
            "MetaData": {
            "Keys": [
            "xdgdesktopportal",
            "flatpak",
            "snap"
            ]
            },
            "archreq": 0,
            "className": "QXdgDesktopPortalThemePlugin",
            "debug": false,
            "version": 331520
            }

            Got keys from plugin meta data ("xdgdesktopportal", "flatpak", "snap")
            Found metadata in lib D:/.../QtQuick.2/qtquick2plugin.dll, metadata=
            {
            "IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
            "archreq": 0,
            "className": "QtQuick2Plugin",
            "debug": false,
            "uri": [
            "QtQuick.2"
            ],
            "version": 331520
            }

            loaded library "D:/.../QtQuick.2/qtquick2plugin.dll"
            Found metadata in lib D:/.../QtQuick/Controls.2/qtquickcontrols2plugin.dll, metadata=
            {
            "IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
            "archreq": 0,
            "className": "QtQuickControls2Plugin",
            "debug": false,
            "uri": [
            "QtQuick.Controls.2"
            ],
            "version": 331520
            }

            loaded library "D:/.../QtQuick/Controls.2/qtquickcontrols2plugin.dll"
            Found metadata in lib D:/.../Qt/labs/settings/qmlsettingsplugin.dll, metadata=
            {
            "IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
            "archreq": 0,
            "className": "QmlSettingsPlugin",
            "debug": false,
            "uri": [
            "Qt.labs.settings"
            ],
            "version": 331520
            }

            loaded library "D:/.../Qt/labs/settings/qmlsettingsplugin.dll"
            Found metadata in lib D:/.../QtQuick/Templates.2/qtquicktemplates2plugin.dll, metadata=
            {
            "IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
            "archreq": 0,
            "className": "QtQuickTemplates2Plugin",
            "debug": false,
            "uri": [
            "QtQuick.Templates.2"
            ],
            "version": 331520
            }

            loaded library "D:/.../QtQuick/Templates.2/qtquicktemplates2plugin.dll"
            Found metadata in lib D:/.../QtWebView/declarative_webview.dll, metadata=
            {
            "IID": "org.qt-project.Qt.QQmlExtensionInterface/1.0",
            "archreq": 0,
            "className": "QWebViewModule",
            "debug": false,
            "uri": [
            "QtWebView"
            ],
            "version": 331520
            }

            loaded library "D:/.../QtWebView/declarative_webview.dll"
            Found metadata in lib D:/.../QtQuick/Window.2/windowplugin.dll, metadata=
            {
            "IID": "org.qt-project.Qt.QQmlEngineExtensionInterface",
            "archreq": 0,
            "className": "QtQuick2WindowPlugin",
            "debug": false,
            "uri": [
            "QtQuick.Window.2"
            ],
            "version": 331520
            }

            loaded library "D:/.../QtQuick/Window.2/windowplugin.dll"
            No WebView plug-in found!

            1 Reply Last reply Reply Quote 0
            • P
              Pearled last edited by

              declarative_webview.dll file is everywhere...
              release folder, release/QtWebView folder, release/qml/QtWebView folder
              ...why not found?

              Is there something like a DLL path setting?
              Related or absolute path... whatever.

              1 Reply Last reply Reply Quote 0
              • A
                arguskso last edited by arguskso

                I have the same problem as you describe did you find the solution?

                Edit: well I sort of found the solution you have to create plugins folder and copy webview folder created by the winqmldeploy to it

                P 1 Reply Last reply Reply Quote 1
                • P
                  Pearled @arguskso last edited by

                  @arguskso
                  It was a very late greeting, but thanks to it, it was resolved. Thank you!

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post