daisy
daisy

Reputation: 23581

How do I know if a QWebPage has finished loading?

Other than connecting a slot with QWebPage::loadFinished(), is there a way to poll its status? I didn't find a function that returns directly the percentage of it.

Upvotes: 0

Views: 244

Answers (1)

Cameron Tinker
Cameron Tinker

Reputation: 9789

You could connect to the loadProgress signal on QWebPage like so:

connect(webView, SIGNAL(loadProgress(int)), this, SLOT(loadProgress(int)));

This will report the percentage loaded as progress increases.

Upvotes: 2

Related Questions