Im looking for a way which I could play animated GIF in my pyqt5 python application... It should be displayed for the time when somthing specific happening until it ends.
Asked
Active
Viewed 130 times
1 Answers
0
Just use a QMovie object as follows:
self.label = QtWidgets.QLabel(self)
self.label.setGeometry(QtCore.QRect(0, 0, gifWidth, gifHeight))
self.gif = QtWidgets.QMovie('yourGifLocation.gif')
self.label.setMovie(self.gif)
self.gif.start()
source: https://developpaper.com/how-to-display-gif-picture-in-pyqt5/

Amin Guermazi
- 1,632
- 9
- 19