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. Problem with running the application with QWebEngineView.
QtWS25 Last Chance

Problem with running the application with QWebEngineView.

Scheduled Pinned Locked Moved Unsolved QtWebEngine
qwebengineviewqwebengine
4 Posts 3 Posters 4.4k 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.
  • H Offline
    H Offline
    Harrix
    wrote on last edited by Harrix
    #1

    I am working now with Qt 5.7 Community (Visual Studio 2015) on Windows 10. I compile example program markdowneditor under Release Mode. If I run the program from the Qt Creator, the program is started.

    I want to run the program without Qt Creator. I copy the files in the folder with the .exe file:

    platforms\qminimal.dll
    platforms\qoffscreen.dll
    platforms\qwindows.dll
    libEGL.dll
    libGLESv2.dll
    Qt5Core.dll
    Qt5Gui.dll
    Qt5Network.dll
    Qt5Qml.dll
    Qt5Quick.dll
    Qt5WebChannel.dll
    Qt5WebEngine.dll
    Qt5WebEngineCore.dll
    Qt5WebEngineWidgets.dll
    Qt5Widgets.dll
    

    The program runs normally.

    Then I try to run a program on a clean Windows without Visual Studio 2015 and without Qt. I install Visual C++ Redistributable for Visual Studio 2015.

    Then I copy the folder with all the above files. The program does not start. An error is not issued. Program a few seconds is visible in the Task Manager, and then the program closes. This program is not visible at the same time.

    This situation occurs with any application if there is QWebEngineView.. If I copy all the files from the folder C:\Qt\Qt5.7.0\5.7\msvc2015_64\bin and the folder C:\Qt\Qt5.7.0\5.7\msvc2015_64\plugins, the program does not start too.

    If you remove a component QWebEngineView, the program will start.

    What to do? Can I forget any copy files?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      agarny
      wrote on last edited by
      #2

      Have you checked http://doc.qt.io/qt-5/windows-deployment.html? It should contain all the information you need to deploy the sample program on Windows.

      Regarding the DLLs you mention, you don't need platforms\qminimal.dll and platforms\qoffscreen.dll. As for libEGL.dll and libGLESv2.dll, they might not be needed unless you use ANGLE, in which case you would also need d3dcompiler_47.dll and opengl32sw.dll.

      When it comes to Qt WebEngine, you need quite a few things: QtWebEngineProcess.exe, as well as the contents of the resources and translations\qtwebengine_locales folders.

      This being all said, you should be able to get a Qt application ready for deployment by using windeployqt.exe.

      1 Reply Last reply
      0
      • Hans DijkemaH Offline
        Hans DijkemaH Offline
        Hans Dijkema
        wrote on last edited by
        #3

        This maybe off-topic, but when I download the Qt5.7beta pre-release I find no QWebEngine dlls.
        Still you are using it. How?

        A 1 Reply Last reply
        0
        • Hans DijkemaH Hans Dijkema

          This maybe off-topic, but when I download the Qt5.7beta pre-release I find no QWebEngine dlls.
          Still you are using it. How?

          A Offline
          A Offline
          agarny
          wrote on last edited by
          #4

          @Hans-Dijkema I have yet to try Qt 5.7 beta, but... it seems to me like you haven't installed QtWebEngine?...

          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