Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.1
-
None
Description
Hello,
If I create a QDialog on which I put a QWebEngineView, if I do not set the url on it it fails and the QDialog::exec returns 0.
To try it, please run the following code:
#include <QApplication> #include <QDialog> #include <QWebEngineView> #include <QUrl> int main(int argc, char **argv) { QApplication app{argc, argv}; QDialog dlg; auto view = new QWebEngineView(&dlg); #if 1 Q_UNUSED(view); #else view->setUrl(QString("")); #endif qDebug() << dlg.exec(); }
You can play with if 1 to enable or disable setting the url. For me, with the url, it shows, Without it it just returns from exec with code 0.