//Fun
QMovie::MovieState QMovie::state() const
Returns the current state of QMovie.
//Description
QMovie::NotRunning 0
The movie is not running. This is QMovie's initial state, and the state it enters after stop() has been called or the movie is finished.
QMovie::Paused 1
The movie is paused, and QMovie stops emitting updated() or resized(). This state is entered after calling pause() or setPaused(true). The current frame number it kept, and the movie will continue with the next frame when unpause() or setPaused(false) is called.
QMovie::Running 2
The movie is running.
//Use
if(mAdMovie->state() == QMovie::Running) {
mAdMovie->stop();
}
Qt QMovie判断movie状态,movie是否运行
最新推荐文章于 2022-01-07 15:08:26 发布