Qt4 如何知道QWeb页面是否已完成加载?

Qt4 如何知道QWeb页面是否已完成加载?,qt4,qwebpage,Qt4,Qwebpage,除了用QWebPage::loadFinished()连接插槽外,还有其他方法轮询其状态吗?我没有找到直接返回百分比的函数。您可以连接到QWebPage上的loadProgress信号,如下所示: connect(webView, SIGNAL(loadProgress(int)), this, SLOT(loadProgress(int))); 这将报告进度增加时加载的百分比

除了用QWebPage::loadFinished()连接插槽外,还有其他方法轮询其状态吗?我没有找到直接返回百分比的函数。

您可以连接到QWebPage上的loadProgress信号,如下所示:

connect(webView, SIGNAL(loadProgress(int)), this, SLOT(loadProgress(int)));
这将报告进度增加时加载的百分比