I wrote a function to calculate some values and used append
to write them to the textBrowser
every time a value was calculated.
What I want is that every time the append
executes, data is displayed in the textBrowser
simultaneously.
However, all data display at once when the function ends. Not one by one.
Also, I have a push button. I want it to change its text when it is pushed, and change again when its function is done. So I wrote:
void MainWindow::on_btn_clicked(){
ui->btn->setText("Running...");
//some codes
ui->btn->setText("Reset");
}
But it only changes button's text to "Reset" when the clicked
function is over.
I think these two problem might be relevant, but I can't find a solution.