linuxqmlqt5gifsailfish-os

Gifs on Sailfish-os


I came here with a little problem, i can't use any local .gif in my code.

I work on Linux with QtCreator and the Sailfish VM to make a Sailfish-os application.

I tried first this example, without any success.

Rectangle {
    width: animation.width
    height: animation.height

    AnimatedImage { id: animation; source: "../images/animatedimageitem.gif"}
}

The execution return :

QML AnimatedImage: Error Reading Animated Image File file:///bla/bla/.....

Same problem with other permissions on the gif and with an other gif.

After some researches I found this page where someone indicate to download a plugin, but Qt declare (I wish i could put a link but i'm new -_-', see comments) that gifs are already support by default.

The plugin was finally unobtainable and I found this Sailfish/bin/plugins/imageformats/libqgif.so in my directories.

So what can i do to show a gif on this damn thing ?


Solution

  • Well..... I just put it on my phone (Jolla) and the gif works well. So this is the VM who doesn't seems to like gifs ...

    Thanks for help though, Psycho.