I want to display an animated loader image on my table view while loading. The screenshot below shows an impression.
I have used an animated gif for that, displayed by setStyleSheet
as centered background image.
I face two issues:
gif
with style sheets Animated Gif static in QStyleSheetsetStyleSheet("")
then it is still displayed. The only trick working for me is to override it as 1 pixel transparent imageIs there a solution to those issues or even a better approach (overlay widget? / specialized Qt widget for that)?
(My code exampled with Qt 5.4 / Win7)
Edit: https://stackoverflow.com/a/26958738/356726 shows how such a gif can be animated, but I have no idea to use that in such a kind of overlay / background style.
Use QProgressIndicator insted of gif animation.
PS: it says that it Qt4, but it works with Qt5.