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. Get error with QWebEngineView
Qt 6.11 is out! See what's new in the release blog

Get error with QWebEngineView

Scheduled Pinned Locked Moved General and Desktop
qwebengineviewerroroutput
4 Posts 2 Posters 3.8k Views 1 Watching
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #1

    Hello,
    i have this code:

    #include <QString>
    #include <QTimer>
    #include <QThread>
    #include <QTime>
    #include <QMainWindow>
    #include <QApplication>
    #include <QWebEngineView>
    
    int main(int argc, char *argv[])
    {
    
      QApplication app(argc, argv);
    
    
     QMainWindow *mainWin = new QMainWindow;
    
     QWebEngineView *view = new QWebEngineView;
     view->load(QUrl("http://qt.io/"));
     view->show();
     mainWin->setCentralWidget(view);
    
       mainWin->showMaximized();
       return app.exec();
    }
    
    

    And in the output i'll get this:

    Debuggen beginnt
    [1205/181633:ERROR:scoped_ole_initializer.cc(20)] Multiple OleInitialize() calls for thread 8904
    [1205/181634:ERROR:visitedlink_master.cc(73)] Failed to open file C:\Users\henri\AppData\Local\WebEngineView_Example\QtWebEngine\Default\Visited Links
    [1205/181639:INFO:CONSOLE(2)] "JQMIGRATE: Migrate is installed, version 1.4.1", source: https://d33sqmjvzgs8hq.cloudfront.net/wp-includes/js/jquery/jquery-migrate.min.js.gzip?ver=1.4.1 (2)
    [1205/181653:FATAL:resource_scheduler.cc(1051)] Check failed: client_map_.empty(). 
    Debuggen beendet
    

    Any idea how i can solv this?

    Thanks

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! You need to take of the lifetime of your QObjects ;)

      int main(int argc, char *argv[])
      {
      
          QApplication app(argc, argv);
          QMainWindow mainWin;
          QWebEngineView *view = new QWebEngineView(&mainWin);
          view->load(QUrl("http://qt.io/"));
          view->show();
          mainWin.setCentralWidget(view);
          mainWin.showMaximized();
          return app.exec();
      }
      
      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3
        Debuggen beginnt
        [1205/192828:ERROR:scoped_ole_initializer.cc(20)] Multiple OleInitialize() calls for thread 9528
        [1205/192833:INFO:CONSOLE(2)] "JQMIGRATE: Migrate is installed, version 1.4.1", source: https://d33sqmjvzgs8hq.cloudfront.net/wp-includes/js/jquery/jquery-migrate.min.js.gzip?ver=1.4.1 (2)
        [1205/192846:INFO:CONSOLE(2)] "JQMIGRATE: Migrate is installed, version 1.4.1", source: https://d33sqmjvzgs8hq.cloudfront.net/wp-includes/js/jquery/jquery-migrate.min.js.gzip?ver=1.4.1 (2)
        Debuggen beendet
        
        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          These messages aren't critical, you can ignore them. What's important is, that you don't crash the application anymore.

          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