Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Gifs are not displayed on the QT app ARM64 with no errors



  • Hi,

    I am developing a QT application which will be integrated into a linux device under arm64 with a screen, which integrates some Qpushbuttons and Qlabel. In some Qlabel I add Gifs like this:

        m_stateLive = new QLabel();
        m_stateLive->setFixedSize(52,52);
        stateLiveGif = new 
        QMovie(":/images/images/test.gif");
        m_stateLive->setMovie(stateLiveGif);
        stateLiveGif->start();
        proxy1 = new QGraphicsProxyWidget();
        proxy1->setWidget(m_stateLive);
        scene.addItem(proxy1);
        .
        .
        .
        m_ui->ui_graphicsView->setScene(&scene);
    

    When i compile the QT application in DESKTOP version, it work very well, i can see the GIF animated, But when i CROSS-COMPILE for ARCH64, The QT application work fine with all button.. but the Gifs are not diplayed in any situation, i don't now why, when i cross compile, there was no error, and also in my LOG data when application are running in linux arm64 device

    Some one have any idea why Gifs are not displayed ? thanks.



  • Find solution ! Finally i add libqgif.so in my arch64 device in the right folder /usr/lib/plugins/imageformats ! Thanks again @raven-worx


  • Moderators

    @jawad_soft
    does your Qt cross-compilation have a "plugins/imageformats/libqgif.so" plugin in its output?
    Also check the output of QImageReader::supportedImageFormats()



  • Hi @raven-worx ,

    Thanks for reply !

    I did not find "plugins/imageformats/libqgif.so" in the outpout of my cross compilation, but i find "libqgif.so" in the repository of my cross compilator "...plugins/imageformats/libqgif.so"

    Output QImageReader::supportedImageFormats() =>

    QImageReader ("bmp", "jpeg", "jpg", "pbm", "pgm", "png", "ppm", "xbm", "xpm")
    
    

    what should i do so to add the gif ?

    Thanks.



  • Find solution ! Finally i add libqgif.so in my arch64 device in the right folder /usr/lib/plugins/imageformats ! Thanks again @raven-worx


Log in to reply