The Movie example demonstrates how to use QMovie and QLabel to display animations.
QMovie is mostly useful if one wants to play a simple animation without the added complexity of a multimedia framework to install and deploy.
Example project @ code.qt.io