View Qt Qml Animated Image
PNG. Press ctrl+r to run the application. The following qml shows how to display an animated image and obtain information about its state, such as the current frame and total number of frames.
Qt is designed for creating applications that can run on different platforms without the need to change codebase for each platform. Qml image elementthe image element displays an image in a declarative user interface more.image元素在 images can be supplied in any of the standard image formats supported by qt, including bitmap formats if you need to display animated images, use the animatedimageelement. As well, state transitions may assign animations to state changes.
Old answer for reference, before knowing there was a background to the image:
Press ctrl+r to run the application. Qml very nicely animates size changes. Using qml, we can declare transitions and animate our text editor. There is a nested image element declaring that.