Questions tagged [qmovie]

19 questions
3
votes
1 answer

Loading animation with PyQt5 freezing problem during the web automation process with Selenium

I've been working some web automation projects. In this exampe, I reduced my code to basically opening some URLs. I want to add some user friendly interface while the main process was continuing. However when I want to show user to loading gif, It…
Fatih Tüz
  • 133
  • 1
  • 12
1
vote
1 answer

PyQt5 : QMovie is truncated even after resizing

I am adding a gif to my QMainWindow. I want the size of my window to match exactly the size of QMovie but my QMovie is truncated at the first place and even if use resize on that, its still not showing fully. Here is the code : from typing import…
H Kumar
  • 37
  • 6
1
vote
2 answers

QMovie does not start if started from a thread

fellow developers! I have a question regarding Qt and multithreading. === SHORT VERSION =========================================== Is it possible to do what I want with Qt? That is (1) show a loader; (2) download a gif in the background; (3) show…
1
vote
1 answer

How to rotate/transform QMovie in c++

I can rotate QPixmap with code like this QPixmap pix("img.jpg"); QMatrix rm; rm.rotate(90); pix = pix.transformed(rm) how can I do same with QMovie? Or somehow wrap it into some "container" and rotate that "container"?
l4zygreed
  • 13
  • 2
1
vote
0 answers

How do I release a file handle with Qt QMovie?

I have written a simple image viewer. It can view the images just fine, but when it tries to shutil.move a .gif file played with QMovie it crashes. Problem is a still open filehandle. How do I close the filehandle while still playing the gif? This…
1
vote
1 answer

QMovie with border radius

How would I apply a border radius, or otherwise achieve a rounded-corner effect, with a QMovie in PyQt5? It doesn't seem to react to QSS. Although I do not believe it to be relevant, here is my current code anyways, to give an idea what I have…
AlgoRythm
  • 1,196
  • 10
  • 31
1
vote
1 answer

Click a button to change a GIF

In the App there are a QButton and a QLabel. In the QLabel I put a QMovie in, to show a GIF. By clicking the QButton I want to change the GIF, which path is defined in a list. The problem: the App shows only the first GIF. The Button seems not…
Rt Rtt
  • 595
  • 2
  • 13
  • 33
1
vote
1 answer

How to use the signal QMovie::frameChanged(int frameNumber) to emit a signal?

I want to use the frameChanged(int) to emit a signal when the currentFrameNumber is equal to the frameCount, my QT version is 4.7.4 QObject::connect(movie,SIGNAL(frameChanged(int)),movie,SLOT(stop())); QMovieChild.cpp: class QMovieChild:public…
Rex
  • 11
  • 6
0
votes
1 answer

How to play gif in qt cpp?

I want to show a gif on the screen until an action is finished. As far as I understand from the examples, I tried something like this, but the gif does not appear on the screen. How can I do that? QMovie *movie=new QMovie(":/images/loading.gif"); …
ysncck
  • 117
  • 7
0
votes
0 answers

How can I hide the QMovie gif?

I'm trying to make the loading ui. I want to show the loading ui when the operation starts in the thread, and when the thread operations is completed, I want to hide the loading ui. class TableThread(QThread): set_signal = pyqtSignal(int) …
0
votes
0 answers

How to show a loading gif while executing process?

I want to show the user a loading gif while other window is executing. When my graphdialog.ui page executes, showdb.ui closes itself, so I didn't do movie->stop() step. But I am getting the error: The program has unexpectedly finished. The process…
0
votes
1 answer

Add a QLabel with fixed Position in front of a QMovie in PyQt

I am currently developing some software to show the location of tools inside a shelf. There's a little animation in the bottom left, where the user see's the shelf opening, followed by a small legend. At the moment, there's a second widget with the…
Johannes
  • 3
  • 1
0
votes
1 answer

How can I size QMovie?

self.MovieLabel = QLabel() movie = QMovie('C:/Users/Kaan/Desktop/Tasarımlar/Mary/animasyon_mary/wait.gif') self.MovieLabel.setMovie(movie) movie.start() How can i resize QMovie with QLabel?
kaankutan
  • 91
  • 2
  • 9
0
votes
1 answer

Showing a QSplashScreen with QMovie and a QProgressBar crashed. PyQt5

I try to display a SplashScreeen with a gif and a progressbar in it, while a method calculates. Therefore I have one main.py with a PyQt5 MainWindow Application. In this application method starts, see my calc.py: from time import sleep,…
sticki
  • 43
  • 1
  • 8
0
votes
0 answers

Gif doesn't appear with QMovie

I'm currently working with PyQt5 with the widget QMovie, and I'm trying to display a loading gif whenever I'm doing something that requires a bit of time. The problem is, nothing shows up when i'm generating my loading gif and I'm not sure why even…
polycodor
  • 91
  • 1
  • 12
1
2