I have a dialog which shows email infomations.Before the infomations arrive,I set a QLabel in the dialog to show a loading animation.I use QMovie to load the gif file(/pics/loading.gif).
Qt Code:
void MyDialog::showInfo() { ... ui.loadingLabel->setMovie(loadingMovie); ... }To copy to clipboard, switch view to plain text mode
Now,my question is:
When I receive the infomations from the net.I hide the loadingLabel.In the meanwhile,should I delete the QMovie(i.e. loadingMovie) and create a new one next time I need to show loading animation?
And what is the best way if I want to display the loading animation in difference places?
Bookmarks