-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
6.8.1
-
None
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.
- is duplicated by
-
QTBUG-138687 Using QWebEngineView created by new (even initialized) in QDialog causes the dialog to close
-
- Closed
-
- relates to
-
QTBUG-139109 Creating QQuickWidget on dialog within QDialog::exec() causes early exit
-
- Reported
-