Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
void MainWindow::on_webView_loadProgress(int progress){
ui->urlLineEdit->setVisible(false);
ui->progressBar->setValue(progress);
if(progress == 100){
api->injectJavaScript(ui->webView->page()->mainFrame());
ui->urlLineEdit->setVisible(true);
ui->urlLineEdit->setText(ui->webView->url().toString());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment