Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebEngine - immediate crash on load() or setUrl()

QWebEngine - immediate crash on load() or setUrl()

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 2.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.
  • P Offline
    P Offline
    pmh4514
    wrote on last edited by
    #1

    I'm using Qt 5.1 and trying to make a very simple browser wrapper/test to run on Windows 10. Win10 is 64bit but I am compiling a 32bit application with Qt.

    My MainWindow really just does this:

    QWebEngineView* view = new QWebEngineView(this);
    setCentralWidget(view);
    view->load(QUrl("http://www.google.com"));
    

    On my development PC it works fine in debug and release mode.

    I've copied all of the DLL's onto my Win10 PC (which does not have Qt installed)

    if I omit the call to view->load() the application opens fine.

    if I keep the call to load() in place (or, even if I try setURL()) then my application opens and then immediately closes. There is no exception or runtime error thrown that I can see.

    What might I be doing wrong?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      you probably did not deploy the webengine plugin. could you try using windeployqt to deploy your application and see if that solves the problem?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      P 1 Reply Last reply
      0
      • P Offline
        P Offline
        pmh4514
        wrote on last edited by
        #3

        Thanks for replying.
        I will look into windeployqt

        But I do have the /plugins/qtwebengine/ in my runtime path and a qt.conf which points to it, it still fails.

        1 Reply Last reply
        0
        • VRoninV VRonin

          you probably did not deploy the webengine plugin. could you try using windeployqt to deploy your application and see if that solves the problem?

          P Offline
          P Offline
          pmh4514
          wrote on last edited by
          #4

          Thank you, windeployqt was very easy to use and solved the problem.

          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