Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Qt WebEngine not working after using windeployqt (Qt 6.7.2 MSVC2019)
Forum Updated to NodeBB v4.3 + New Features

Qt WebEngine not working after using windeployqt (Qt 6.7.2 MSVC2019)

Scheduled Pinned Locked Moved Unsolved QtWebEngine
4 Posts 3 Posters 387 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.
  • M Offline
    M Offline
    MyNameIsQt
    wrote on 25 Feb 2025, 08:53 last edited by
    #1

    Hi, I'm trying to deploy my Qt application, which uses QWebEngineView and QWebChannel. It runs perfectly in Qt Creator (debug and release mode), but after using windeployqt, the WebEngine components do not load properly. The application launches, but the HTML content is not displayed.

    I have already searched this forum for similar issues, but I couldn't find a solution that works for me. So, I’m posting this question again in hopes of finding some guidance.

    I am using Qt 6.7.2 with MSVC2019 64-bit.
    Here’s what I did:

    1. Running windeployqt
      I ran the following command:
    windeployqt --release --webengine program.exe
    

    However, I got this error:

    unknown option: --webengine
    

    So I tried running it without the --webengine flag:

    windeployqt --release program.exe
    

    It completed without errors, but QWebEngineView still does not work.

    1. Deployment Folder Structure
      All required files have been copied to the deployment folder, including:

    Essential DLLs:
    Qt6Core.dll
    Qt6Gui.dll
    Qt6Widgets.dll
    Qt6WebEngineCore.dll
    Qt6WebEngineWidgets.dll
    Qt6WebChannel.dll
    Qt6WebEngine.dll
    Qt6Qml.dll
    Qt6Quick.dll
    Qt6Network.dll
    d3dcompiler_47.dll
    WebEngine Resources:
    qtwebengine_locales/ (entire folder)
    resources/ (entire folder)
    webengine_resources.pak
    webengine_resources_100p.pak
    webengine_resources_200p.pak
    qtwebengine_devtools_resources.pak
    icudtl.dat
    Executable Files:
    QtWebEngineProcess.exe (inside resources/)
    3. qt.conf Configuration
    I created a qt.conf file in the same folder as program.exe with the following content:

    [Paths]
    Prefix=.
    Plugins=plugins
    Libraries=.
    Imports=imports
    Qml2Imports=qml
    Translations=translations
    
    

    But WebEngine still does not work.

    1. Missing Folder?
      I noticed that C:\Qt\6.7.2\msvc2019_64\plugins\qtwebengine\ does not exist on my system. Could this be the issue? If so, how can I fix it?

    Has anyone encountered this issue with Qt 6.7.2 WebEngine?
    Any help would be greatly appreciated! Thanks in advance.

    J J 2 Replies Last reply 25 Feb 2025, 09:08
    0
    • M MyNameIsQt
      25 Feb 2025, 08:53

      Hi, I'm trying to deploy my Qt application, which uses QWebEngineView and QWebChannel. It runs perfectly in Qt Creator (debug and release mode), but after using windeployqt, the WebEngine components do not load properly. The application launches, but the HTML content is not displayed.

      I have already searched this forum for similar issues, but I couldn't find a solution that works for me. So, I’m posting this question again in hopes of finding some guidance.

      I am using Qt 6.7.2 with MSVC2019 64-bit.
      Here’s what I did:

      1. Running windeployqt
        I ran the following command:
      windeployqt --release --webengine program.exe
      

      However, I got this error:

      unknown option: --webengine
      

      So I tried running it without the --webengine flag:

      windeployqt --release program.exe
      

      It completed without errors, but QWebEngineView still does not work.

      1. Deployment Folder Structure
        All required files have been copied to the deployment folder, including:

      Essential DLLs:
      Qt6Core.dll
      Qt6Gui.dll
      Qt6Widgets.dll
      Qt6WebEngineCore.dll
      Qt6WebEngineWidgets.dll
      Qt6WebChannel.dll
      Qt6WebEngine.dll
      Qt6Qml.dll
      Qt6Quick.dll
      Qt6Network.dll
      d3dcompiler_47.dll
      WebEngine Resources:
      qtwebengine_locales/ (entire folder)
      resources/ (entire folder)
      webengine_resources.pak
      webengine_resources_100p.pak
      webengine_resources_200p.pak
      qtwebengine_devtools_resources.pak
      icudtl.dat
      Executable Files:
      QtWebEngineProcess.exe (inside resources/)
      3. qt.conf Configuration
      I created a qt.conf file in the same folder as program.exe with the following content:

      [Paths]
      Prefix=.
      Plugins=plugins
      Libraries=.
      Imports=imports
      Qml2Imports=qml
      Translations=translations
      
      

      But WebEngine still does not work.

      1. Missing Folder?
        I noticed that C:\Qt\6.7.2\msvc2019_64\plugins\qtwebengine\ does not exist on my system. Could this be the issue? If so, how can I fix it?

      Has anyone encountered this issue with Qt 6.7.2 WebEngine?
      Any help would be greatly appreciated! Thanks in advance.

      J Offline
      J Offline
      JonB
      wrote on 25 Feb 2025, 09:08 last edited by
      #2

      @MyNameIsQt said in Qt WebEngine not working after using windeployqt (Qt 6.7.2 MSVC2019):

      unknown option: --webengine

      I know nothing about this, but https://doc.qt.io/qt-6/windows-deployment.html#the-windows-deployment-tool actually claims this should be -webengine? As well as perhaps -webenginewidgets and -webchannel?

      1 Reply Last reply
      0
      • M MyNameIsQt
        25 Feb 2025, 08:53

        Hi, I'm trying to deploy my Qt application, which uses QWebEngineView and QWebChannel. It runs perfectly in Qt Creator (debug and release mode), but after using windeployqt, the WebEngine components do not load properly. The application launches, but the HTML content is not displayed.

        I have already searched this forum for similar issues, but I couldn't find a solution that works for me. So, I’m posting this question again in hopes of finding some guidance.

        I am using Qt 6.7.2 with MSVC2019 64-bit.
        Here’s what I did:

        1. Running windeployqt
          I ran the following command:
        windeployqt --release --webengine program.exe
        

        However, I got this error:

        unknown option: --webengine
        

        So I tried running it without the --webengine flag:

        windeployqt --release program.exe
        

        It completed without errors, but QWebEngineView still does not work.

        1. Deployment Folder Structure
          All required files have been copied to the deployment folder, including:

        Essential DLLs:
        Qt6Core.dll
        Qt6Gui.dll
        Qt6Widgets.dll
        Qt6WebEngineCore.dll
        Qt6WebEngineWidgets.dll
        Qt6WebChannel.dll
        Qt6WebEngine.dll
        Qt6Qml.dll
        Qt6Quick.dll
        Qt6Network.dll
        d3dcompiler_47.dll
        WebEngine Resources:
        qtwebengine_locales/ (entire folder)
        resources/ (entire folder)
        webengine_resources.pak
        webengine_resources_100p.pak
        webengine_resources_200p.pak
        qtwebengine_devtools_resources.pak
        icudtl.dat
        Executable Files:
        QtWebEngineProcess.exe (inside resources/)
        3. qt.conf Configuration
        I created a qt.conf file in the same folder as program.exe with the following content:

        [Paths]
        Prefix=.
        Plugins=plugins
        Libraries=.
        Imports=imports
        Qml2Imports=qml
        Translations=translations
        
        

        But WebEngine still does not work.

        1. Missing Folder?
          I noticed that C:\Qt\6.7.2\msvc2019_64\plugins\qtwebengine\ does not exist on my system. Could this be the issue? If so, how can I fix it?

        Has anyone encountered this issue with Qt 6.7.2 WebEngine?
        Any help would be greatly appreciated! Thanks in advance.

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 25 Feb 2025, 09:18 last edited by
        #3

        @MyNameIsQt To add to @JonB : you can get a list of all parameters by calling: windeployqt --help

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        J 1 Reply Last reply 25 Feb 2025, 09:20
        0
        • J jsulm
          25 Feb 2025, 09:18

          @MyNameIsQt To add to @JonB : you can get a list of all parameters by calling: windeployqt --help

          J Offline
          J Offline
          JonB
          wrote on 25 Feb 2025, 09:20 last edited by
          #4

          @jsulm
          Per the link, which is a screen shot of the --help, it just lists all the possible extra libraries at the end and it states

          Qt libraries can be added by passing their name (-xml)

          which is why I thought maybe it should be a single hyphen?

          1 Reply Last reply
          0

          1/4

          25 Feb 2025, 08:53

          • Login

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