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. QWebEngineView not working after upgrade form Qt 6.5.3 to Qt 6.8.3
Forum Updated to NodeBB v4.3 + New Features

QWebEngineView not working after upgrade form Qt 6.5.3 to Qt 6.8.3

Scheduled Pinned Locked Moved Solved QtWebEngine
webengine6.8.3windows
2 Posts 1 Posters 44 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.
  • J Offline
    J Offline
    Jammin44fm
    wrote last edited by
    #1

    Hi all,

    I've recently upgraded my application from Qt 6.5.3 to Qt 6.8.3
    and now my usage of QWebEngineView isn't working as expected.
    My app is mostly C++, and while primary platform is Win, it also runs on Mac and Linux.

    I'm using QWebEngineView to load a webpage within a tabBar in my application.
    The usage is pretty basic,
    A simplified example is below.

    QWebEngineView* view = new QWebEngineView;
    view->setUrl(QUrl(QStringLiteral("https://www.qt.io")));
    myTabWidget->addTab(view, "Tab Title text");
    

    Interestingly, the same code works on both Mac and Linux to load the same webpage,
    so it looks like windows is the problem platform.

    I've connected QWebEngineView::loadStarted and QWebEngineView::loadFinished
    signals, and they are both being triggered.

    I've tried making a basic Qt sample app using the same webpage, and the page in question
    loads and displays correctly. So It looks like a problem within my usage.
    However given it works on Mac and Linux I'm at a bit of a loss to figure out why?

    I've also tried doing the following elsewhere in my app and it displays the dialog,
    but not the contents of the webpage.

        QWebEngineView* view = new QWebEngineView;
        view->setUrl(QUrl(QStringLiteral("https://www.qt.io")));
        view->resize(1024, 750);
        view->show();
    

    Is it maybe related to some library not being included?
    I am explicitly including all the required DLL's for my app, and not using them from the system dir.
    I have tried dumping ALL the dll into the application.exe dir, but that doesn't work.
    I've used Depends to look for any missing DLL's but that shows no problems.

    Any help or suggestions of how to further debug things would be great?
    Cheers,
    James

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jammin44fm
      wrote last edited by
      #2

      OK fixed it.
      I was not updating the additional resource files when packaging my application.
      eg. qtwebengine_.pak, vcontext.bin, and the icudtl.dat file.

      1 Reply Last reply
      0
      • J Jammin44fm has marked this topic as solved

      • Login

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