Hi,
Try, this
connect(webView, SIGNAL(loadFinished(bool)), this, SLOT(onLoadFinished(bool)));
connect(webView, SIGNAL(loadFinished(bool)), this, SLOT(onLoadFinished(bool)));
To copy to clipboard, switch view to plain text mode
void Browser::onLoadFinished(bool success){
qDebug() << success;
if (!success)
webView->page()->mainFrame()->setHtml("Page not Found");
}
void Browser::onLoadFinished(bool success){
qDebug() << success;
if (!success)
webView->page()->mainFrame()->setHtml("Page not Found");
}
To copy to clipboard, switch view to plain text mode
In onLoadFinished function you can check the result (true, or false).
And then you can write your message.
webView->page()->mainFrame()->setHtml("Page not Found");
Bookmarks