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
QtWS25 Last Chance

Windeployqt & (qml) WebView not working

Scheduled Pinned Locked Moved Solved Installation and Deployment
6 Posts 3 Posters 1.5k Views
  • 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 last edited by Nando
    #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.HilkJ 1 Reply Last reply
    0
    • ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on 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

        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.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on 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
        0
        • J.HilkJ J.Hilk

          @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 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.HilkJ 1 Reply Last reply
          0
          • N Nando

            @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.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on 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
            3
            • J.HilkJ J.Hilk

              @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 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

              • Login

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