-1

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.

Alon Keren
  • 11
  • 3

1 Answers1

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