Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

create loading in pyqt

self.loading = QLabel() # create the QLabel
self.layout.addWidget(self.loading) # add it to our layout
movie = QMovie("myGifLoading.gif") # Create a QMovie from our gif
self.loading.setMovie(movie) # use setMovie function in our QLabel
self.loading.setFixedSize(60, 60) # set its size
self.loading.setMaximumWidth(50) # set Max width
movie.start() # now start the gif
# and to stop the gif later we'll use : movie.stop()

# we use show() and hide() function to make it visible or not where you want it
 
PREVIOUS NEXT
Tagged: #create #loading #pyqt
ADD COMMENT
Topic
Name
5+4 =