Solved How to add parsed html into my Application?
-
Hi,
I have parsed a web page and get a part of the web page into a QString object. I have tried to get the title into a Qlabel it was OK. Now I want to add the button between the tags into my application. How to do it? Can I add this button into my QWebEngineView?
Thank you in advance -
@aysenur Why don't you just load this HTML in QWebEngineView? http://doc.qt.io/qt-5/qwebengineview.html#setContent
-
@jsulm Thank you for your answer. I don't want to load the whole web page, I want to take just the parts that I need in to my application. How can I load this html to QWebEngineView, for loading I need Url but here I have html string.
-
-
@jsulm Thank you again. From the link void QWebEngineView::setHtml(const QString &html, const QUrl &baseUrl = QUrl()) method solved my problem.