Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_gui_image_qmovie.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3#include <QLabel>
4#include <QMovie>
5
7
8void wrapper0() {
9
10
13QMovie *movie = new QMovie("animations/fire.gif");
14
15label.setMovie(movie);
16movie->start();
18
19} // wrapper0
20
21
22void wrapper1() {
23
25QMovie movie("racecar.gif");
26movie.setSpeed(200); // 2x speed
28
29} // wrapper1
30} // src_gui_image_qmovie
The QLabel widget provides a text or image display.
Definition qlabel.h:20
\inmodule QtGui
Definition qmovie.h:28
void start()
Starts the movie.
Definition qmovie.cpp:945
void setSpeed(int percentSpeed)
Definition qmovie.cpp:910
GLuint GLsizei const GLchar * label
[43]