i have 4 tabs and in the 4th tab i want to get a web page, what i did was access the widget which is present in that tab and then render the page on it.
here is that part of code that is performing the this part
QWidget *tab4Widget = ui->tabWidget->findChild<QWidget*>("webwidget");
QVBoxLayout *tab4Layout = new QVBoxLayout(tab4Widget);
// Create QWebEngineView and set it to load a web page
QWebEngineView *webEngineView = new QWebEngineView();
webEngineView->setUrl(QUrl("https://www.qt.io"));
tab4Layout->addWidget(webEngineView);
here ui is MainWindow,
after doing all this the page is coming as blank and no error is coming.
New contributor
sushant singh sikarwar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1