diff --git a/examples/webenginewidgets/simplebrowser/tabwidget.cpp b/examples/webenginewidgets/simplebrowser/tabwidget.cpp index a7f855c2ac38f1f015624d9e2446b2d2714b5d1c..33c3ac1dc35b18b02376ba5db74e48f95afc2eb5 100644 --- a/examples/webenginewidgets/simplebrowser/tabwidget.cpp +++ b/examples/webenginewidgets/simplebrowser/tabwidget.cpp @@ -204,8 +204,13 @@ WebView *TabWidget::createTab(bool makeCurrent) webView->setPage(webPage); setupView(webView); addTab(webView, tr("(Untitled)")); - if (makeCurrent) + if (makeCurrent) { setCurrentWidget(webView); + } else { + // Workaround for QTBUG-61770 + webView->resize(currentWidget()->size()); + webView->show(); + } return webView; }