✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

How can I display html generated by plotly using QWebview in Qt4

I have got some html files generated using plotly python.
I want to view these html using QWebView in Qt4 GUI.

QWebView* view=new QWebView();
view->setHtml(some text);
// or view->load(QUrl::fromLocalFile(path));
view->show();

But this just doesn’t work.
Does anyone know how to make it work?
Thanks.