How to add parsed html into my Application?
-
wrote on 27 Sept 2017, 14:27 last edited by
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 -
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
-
@aysenur Why don't you just load this HTML in QWebEngineView? http://doc.qt.io/qt-5/qwebengineview.html#setContent
wrote on 28 Sept 2017, 13:31 last edited by@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 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.
1/5