animation - Qt 5.9.0 QML How to Animate an Image with more than 256 colors (ie not a GIF) using AnimatedImage or otherwise -
i can use animatedimage works on gifs this;
import qtquick 2.7 import qtquick.controls 2.2 applicationwindow { visible: true width: 640 height: 480 rectangle { width: animation.width; height: animation.height + 8 animatedimage { id: animation; source: "myanimation.gif" } rectangle { height: 8 width: animation.currentframe/animation.framecount * animation.width y: animation.height color: "red" component.oncompleted: console.log("framecount ", animation.framecount); } } } i lot of error messages too. printed on , over;
qqmlexpression: expression qrc:/main.qml:26:20 depends on non-notifyable properties: qquickanimatedimage::framecount i took example code here; http://doc.qt.io/qt-5/qml-qtquick-animatedimage.html
which doen't work @ all, wrong putting framecount property, changed in version.
i animate png apng. apparently there used mng support, not there anymore.
so call qmovie::supportedformats returns gif (on windows).
my question:
how can either use animatedimage on format supports non-palettised color (eg png etc) or there way animate image work?
thanks info.
it seems image formats not shipped standard installation of qt/qml. can install them plugin.
see:
Comments
Post a Comment