Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78866

Calling show on a QWebEngineView a second time leads to an all black page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 5.12.5
    • 5.12.4
    • WebEngine
    • None
    • Linux/X11, macOS, Windows

    Description

      When calling show on a QWebEngineView a second time, the view will display all black contents.

       

      Minimal working example:

      #include <QApplication>
      #include <QWebEngineView>
      
      int main(int argc, char *argv[])
      {
          QCoreApplication::setOrganizationName("QtExamples");
          QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
          QApplication app(argc, argv);
      
          QWebEngineView view;
          view.setUrl(QUrl(QStringLiteral("https://www.qt.io")));
          view.resize(1024, 750);
          view.show();
      
          while(view.isVisible())
          {
              app.processEvents();
          }    
          view.show();
      
          return app.exec();
      }
      

      Tested on Linux, Windows and Mac with the same result.

       

       

      Attachments

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            pklaffert Philipp Klaffert
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: