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.