Once we have drawn sprite
on working with
, it's time to apply the resulting image when working with Qt and add it to the program using
. Moreover, we do Animated sprite, and see how the small explosion Animated graphics on the stage of our application on Qt.
The project structure to work with QPixmap and sprite
sprite_example project structure will be as follows:
- the profile of the project;
- header file of the main application window;
- file source code of the main application window;
- interface file;
- class header file that is used for our sprite, which will be applied QPixmap;
- file source code to work with QPixmap;
- resource file;
- our sprite, which we will use for the animation.