I have a qt application in which I have a QTreewidget that displays some content in the QTextBrowser. I set the contents for the html document in the textbrowser using the setHtml() function. All I want now is to fetch the url of this html document so that I could use it later somewhere in my application. I looked around a lot but all in vain. I hope someone could help me with it.
Jump to Post
According to the documentation, the
setHtml()function sets the html data directly (as a QString containing the html code), and you can use
toHtml()to retrieve that html code later on. If you got an html page from some URL and you dumped the html source code from that page …
All 3 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.