
Originally Posted by
ttimt
So I will need to save all visited sites into a file and loads it if the user click "History" button?
What do you want to achieve?

Originally Posted by
ttimt
can you please show the code? If the user click "Save Page", I went to the slot of this
Ah, save page is a button.
Well, in the slot you do this
QWebPage *webPage = ui->webView->page();
QWebFrame *webFrame = webPage->mainFrame();
QString content
= webFrame
->toHtml
();
// content now contains the HTML of the loaded URL
QWebPage *webPage = ui->webView->page();
QWebFrame *webFrame = webPage->mainFrame();
QString content = webFrame->toHtml();
// content now contains the HTML of the loaded URL
To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks