Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. GIF not Displayed in QT 5.15
Forum Updated to NodeBB v4.3 + New Features

GIF not Displayed in QT 5.15

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 4 Posters 962 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JonBJ JonB

    @Vivek_autometers said in GIF not Displayed in QT 5.15:

    QMovie *movie = new QMovie("doorClosel.gif");

    The GIF File is in the local folder.

    What "local folder", and what evidence do you have that using this relative path picks that up? Could you at least verify (in your code) that the file exists and has been picked up by this line of code?

    V Offline
    V Offline
    Vivek_autometers
    wrote on last edited by
    #3

    Hi @JonB

    I have verified it in 2 systems.
    Desktop and Target.
    Working on Desktop and not on target board.

    Regards

    Christian EhrlicherC JonBJ 2 Replies Last reply
    0
    • V Vivek_autometers

      Hi @JonB

      I have verified it in 2 systems.
      Desktop and Target.
      Working on Desktop and not on target board.

      Regards

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #4
      1. Make sure the file really exists where you expect it as @JonB already told you by using e.g. QFile::exists() and/or moving it to a Qt resource.
      2. Make sure the Qt gif imageformat plugin is available and check if it gets correctly loaded.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • V Vivek_autometers

        Hi @JonB

        I have verified it in 2 systems.
        Desktop and Target.
        Working on Desktop and not on target board.

        Regards

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #5

        @Vivek_autometers said in GIF not Displayed in QT 5.15:

        I have verified it in 2 systems.

        How does that verify that the file can be found? Do you understand where a relative path is sought from your running Qt application? Maybe it's different on target board from desktop (it may at least depend on how you invoked your application, for example from Creator or not, though there are other influencers.). Please put in code as I suggested and @Christian-Ehrlicher reiterated so that both you & we know for sure this is not an issue.

        V 1 Reply Last reply
        0
        • JonBJ JonB

          @Vivek_autometers said in GIF not Displayed in QT 5.15:

          I have verified it in 2 systems.

          How does that verify that the file can be found? Do you understand where a relative path is sought from your running Qt application? Maybe it's different on target board from desktop (it may at least depend on how you invoked your application, for example from Creator or not, though there are other influencers.). Please put in code as I suggested and @Christian-Ehrlicher reiterated so that both you & we know for sure this is not an issue.

          V Offline
          V Offline
          Vivek_autometers
          wrote on last edited by
          #6

          Hi @JonB

          Thanks for replying, but I have changed the file path to fix path
          *QMovie movie = new QMovie("/home/root/doorClosel.gif");

          still the same issue.

          My Query
          1: Does QT Wayland Support GIF Format
          2: If yes, is there any package missing that I should install

          Regards

          V Christian EhrlicherC 2 Replies Last reply
          0
          • V Vivek_autometers

            Hi @JonB

            Thanks for replying, but I have changed the file path to fix path
            *QMovie movie = new QMovie("/home/root/doorClosel.gif");

            still the same issue.

            My Query
            1: Does QT Wayland Support GIF Format
            2: If yes, is there any package missing that I should install

            Regards

            V Offline
            V Offline
            Vivek_autometers
            wrote on last edited by
            #7

            Hi @JonB,

            I just added Debug prints on Embedded Devices.
            Here is the out come

            *root@colibri-imx6-10923511:~# ./gif_flv_test
            File Exists

            Not a valid File*

            I am not sure why this is showing an invalid File.

            Regards

            1 Reply Last reply
            0
            • V Vivek_autometers

              Hi @JonB

              Thanks for replying, but I have changed the file path to fix path
              *QMovie movie = new QMovie("/home/root/doorClosel.gif");

              still the same issue.

              My Query
              1: Does QT Wayland Support GIF Format
              2: If yes, is there any package missing that I should install

              Regards

              Christian EhrlicherC Online
              Christian EhrlicherC Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #8

              @Vivek_autometers said in GIF not Displayed in QT 5.15:

              1: Does QT Wayland Support GIF Format

              Make sure the Qt gif imageformat plugin is available and check if it gets correctly loaded.

              Reading would certainly help...

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              V 1 Reply Last reply
              0
              • Christian EhrlicherC Christian Ehrlicher

                @Vivek_autometers said in GIF not Displayed in QT 5.15:

                1: Does QT Wayland Support GIF Format

                Make sure the Qt gif imageformat plugin is available and check if it gets correctly loaded.

                Reading would certainly help...

                V Offline
                V Offline
                Vivek_autometers
                wrote on last edited by
                #9

                @Christian-Ehrlicher
                I am cross checking for it.
                I have the sample code that is working in Desktop but not on other system.
                Surely reading and checking for the same

                Regards

                Christian EhrlicherC 1 Reply Last reply
                0
                • V Vivek_autometers

                  @Christian-Ehrlicher
                  I am cross checking for it.
                  I have the sample code that is working in Desktop but not on other system.
                  Surely reading and checking for the same

                  Regards

                  Christian EhrlicherC Online
                  Christian EhrlicherC Online
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

                  @Vivek_autometers Why do you think just because it works on another machine means that the plugin is there on your target system and is loaded correctly??

                  Do whatever you want, I'm out.

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  V 1 Reply Last reply
                  0
                  • Christian EhrlicherC Christian Ehrlicher

                    @Vivek_autometers Why do you think just because it works on another machine means that the plugin is there on your target system and is loaded correctly??

                    Do whatever you want, I'm out.

                    V Offline
                    V Offline
                    Vivek_autometers
                    wrote on last edited by
                    #11

                    @Christian-Ehrlicher
                    That's what I wanted to figure out
                    I was just curious how to do it.

                    Christian EhrlicherC C 2 Replies Last reply
                    0
                    • V Vivek_autometers

                      @Christian-Ehrlicher
                      That's what I wanted to figure out
                      I was just curious how to do it.

                      Christian EhrlicherC Online
                      Christian EhrlicherC Online
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #12

                      @Vivek_autometers said in GIF not Displayed in QT 5.15:

                      I was just curious how to do it.

                      Following my links would be a start...

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      1 Reply Last reply
                      0
                      • V Vivek_autometers

                        @Christian-Ehrlicher
                        That's what I wanted to figure out
                        I was just curious how to do it.

                        C Offline
                        C Offline
                        ChrisW67
                        wrote on last edited by
                        #13

                        @Vivek_autometers

                        1: Does QT Wayland Support GIF Format

                        Of course, if the GIF file is found and the Qt GIF image format plugin is present in the correct place on the running system. Which is why reading this...

                        Make sure the Qt gif imageformat plugin is available and check if it gets correctly loaded.

                        was important.

                        Well, have you deployed the Qt GIF image format plugin (.../imageformats/libqgif.so) on to the running system?
                        Have you checked that it has been found and loaded successfully?

                        export QT_DEBUG_PLUGINS=1
                        ./gif_flv_test
                        

                        Once you get it working, for the safety of all, do not run this as root.

                        1 Reply Last reply
                        1
                        • V Offline
                          V Offline
                          Vivek_autometers
                          wrote on last edited by
                          #14
                          This post is deleted!
                          1 Reply Last reply
                          0
                          • V Offline
                            V Offline
                            Vivek_autometers
                            wrote on last edited by
                            #15

                            Hi All,

                            Thank you for posting.
                            The issue is resolved.
                            Installed the missing plugin.

                            Regards
                            Vivek

                            1 Reply Last reply
                            0
                            • V Vivek_autometers has marked this topic as solved on

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved