Loading indicator for QX11EmbedContainer
There was a need to display the preloader while in the container.
QX11EmbedContainerI don't see it. There's a moment to start displaying the pre-loader, on the signal.
clientIsEmbedded()I can determine the moment of the intrusion and stop showing the proloader, and also stop showing in case of error. But the question arose - what means would it be better to display the preloader himself? If I understand correctly,
QSplashScreenIt doesn't work, because it's tied to the view.
QProgressBar- it is unclear how to set the percentage of the operation. Show me.
If there is no need to determine the percentage of the operation, an image can be easily displayed. As an example:
m_pProgressText = new QLabel("Загрузка...", this); m_pProgressImage = new QLabel(this); QMovie* movie = new QMovie(":/icon/throbber.gif"); m_pProgressImage->setMovie(movie); movie->start();
At the same time, when the application is moved to Windows, there must be a library of qgif4.dll, otherwise the image will not be displayed.