Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
除了用 QWebPage::loadFinished() 连接一个槽外,有没有办法轮询它的状态?我没有找到直接返回百分比的函数。
您可以像这样连接到 QWebPage 上的 loadProgress 信号:
connect(webView, SIGNAL(loadProgress(int)), this, SLOT(loadProgress(int)));
随着进度的增加,这将报告加载的百分比。