Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Windeployqt & (qml) WebView not working
Forum Update on Tuesday, May 27th 2025

Windeployqt & (qml) WebView not working

Scheduled Pinned Locked Moved Solved Installation and Deployment
6 Posts 3 Posters 1.5k Views 1 Watching
  • 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.
  • N Offline
    N Offline
    Nando
    wrote on 5 Jul 2018, 11:16 last edited by Nando 7 May 2018, 11:16
    #1

    Hi,
    i just replaced QtWebEngine with WebView.
    Now when i run windeployqt and start my application from the resulting deployment the webview stuff doesn't work. It shows no webview, just a white widget (It's a quickwidget which uses the webveiw). Running my app directly from qtcreator works fine.

    Any ideas what's wrong?
    Here is a list of the webview libs inside my deployment folder:

    webview\qtwebview_webengine.dll
    Qt5WebView.dll
    Qt5WebEngine.dll
    Qt5WebEngineCore.dll
    Qt5WebChannel.dll

    And also the QtWebEngineProcess.exe is there

    Greetings
    Nando

    J 1 Reply Last reply 5 Jul 2018, 13:03
    0
    • O Offline
      O Offline
      ODБOï
      wrote on 5 Jul 2018, 11:56 last edited by
      #2

      I think this is a bad methode but i'm doing this when i have no idea what is missing :

      copy your .exe inside your Qt dir :
      exemple for app using qt5.11 with minGw

      C:\Qt\5.11.0\mingw53_32\bin
      

      run your .exe. If it works, copy the full dir C:\Qt\5.11.0\mingw53_32\bin to another location and delete everything your app don't need...

      1 Reply Last reply
      1
      • N Nando
        5 Jul 2018, 11:16

        Hi,
        i just replaced QtWebEngine with WebView.
        Now when i run windeployqt and start my application from the resulting deployment the webview stuff doesn't work. It shows no webview, just a white widget (It's a quickwidget which uses the webveiw). Running my app directly from qtcreator works fine.

        Any ideas what's wrong?
        Here is a list of the webview libs inside my deployment folder:

        webview\qtwebview_webengine.dll
        Qt5WebView.dll
        Qt5WebEngine.dll
        Qt5WebEngineCore.dll
        Qt5WebChannel.dll

        And also the QtWebEngineProcess.exe is there

        Greetings
        Nando

        J Online
        J Online
        J.Hilk
        Moderators
        wrote on 5 Jul 2018, 13:03 last edited by
        #3

        @Nando
        can you post your windeployqt call ? I have the feeling that you may have made an error with the --qmldir paramter.


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        N 1 Reply Last reply 5 Jul 2018, 14:02
        0
        • J J.Hilk
          5 Jul 2018, 13:03

          @Nando
          can you post your windeployqt call ? I have the feeling that you may have made an error with the --qmldir paramter.

          N Offline
          N Offline
          Nando
          wrote on 5 Jul 2018, 14:02 last edited by
          #4

          @J.Hilk Hi,
          i have only 1 qml file (the one with the webview) and it is included inside my resource file.

          I also tried to specifiy the qml when running windeployqt like this:

           %QTDIR%\bin\windeployqt --release -qmldir C:\DEVELOPMENT\qtcreator-workspace\myapp\misc\resources\qml   --dir %GENERATION_DIR% %AEL_EXECUTABLE%
          

          But i think the -qml is not needed if the qml file is inside the resources, right?

          J 1 Reply Last reply 5 Jul 2018, 14:18
          0
          • N Nando
            5 Jul 2018, 14:02

            @J.Hilk Hi,
            i have only 1 qml file (the one with the webview) and it is included inside my resource file.

            I also tried to specifiy the qml when running windeployqt like this:

             %QTDIR%\bin\windeployqt --release -qmldir C:\DEVELOPMENT\qtcreator-workspace\myapp\misc\resources\qml   --dir %GENERATION_DIR% %AEL_EXECUTABLE%
            

            But i think the -qml is not needed if the qml file is inside the resources, right?

            J Online
            J Online
            J.Hilk
            Moderators
            wrote on 5 Jul 2018, 14:18 last edited by
            #5

            @Nando
            Yes and no, all QML files you create, you have the option to pack into your binary, or ship seperaterly, true. But everything that comes from Qt, also everyting you include with an Import has to be shipped with your exe. Same as DLL‘s.

            IIRC you need to prepend a - to -qmldir -> —qmldir for the windeploy tool to find it.


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            N 1 Reply Last reply 5 Jul 2018, 14:43
            3
            • J J.Hilk
              5 Jul 2018, 14:18

              @Nando
              Yes and no, all QML files you create, you have the option to pack into your binary, or ship seperaterly, true. But everything that comes from Qt, also everyting you include with an Import has to be shipped with your exe. Same as DLL‘s.

              IIRC you need to prepend a - to -qmldir -> —qmldir for the windeploy tool to find it.

              N Offline
              N Offline
              Nando
              wrote on 5 Jul 2018, 14:43 last edited by
              #6

              @J.Hilk said in Windeployqt & (qml) WebView not working:

              —qmldir

              Thank you very much!!!!! That was exactly my mistake.... -qml instead of --qml when runnign windeployqt

              Now it works as excpeted! Thank you very much...

              1 Reply Last reply
              0

              4/6

              5 Jul 2018, 14:02

              • Login

              • Login or register to search.
              4 out of 6
              • First post
                4/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved