Hi, the following code
statusLabel
= new QLabel(" idle ",
this);
statusBar()->addWidget(statusLabel);
statusLabel->setText("doing something");
myobject->do_smth_for_minute();
statusLabel->setText("something done");
statusLabel = new QLabel(" idle ", this);
statusBar()->addWidget(statusLabel);
statusLabel->setText("doing something");
myobject->do_smth_for_minute();
statusLabel->setText("something done");
To copy to clipboard, switch view to plain text mode
does not update the statusLabel, it just stays "something done". How can I force updating the widget?
Bookmarks