1self.loading = QLabel() # create the QLabel
2self.layout.addWidget(self.loading) # add it to our layout
3movie = QMovie("myGifLoading.gif") # Create a QMovie from our gif
4self.loading.setMovie(movie) # use setMovie function in our QLabel
5self.loading.setFixedSize(60, 60) # set its size
6self.loading.setMaximumWidth(50) # set Max width
7movie.start() # now start the gif
8# and to stop the gif later we'll use : movie.stop()
9
10# we use show() and hide() function to make it visible or not where you want it