Created
March 18, 2015 23:19
-
-
Save lettergram/c656aaed6619fc2c66c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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