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. QT5 QImage::save function doesn't work in some PC s
QtWS25 Last Chance

QT5 QImage::save function doesn't work in some PC s

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 2.1k 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.
  • M Offline
    M Offline
    manuntn08
    wrote on last edited by
    #1

    I have been in a (QT & C++) project. When I build and release a new version, it works well in my Pc, i put it on the server for clients, so many clients reported that it can't save image functionality in Qt5.
    In fact, i have just changed Qt4 to Qt5 for a while. In the past, i never saw this issue. I tested so many times and it worked in my PC and also on the server in my own PC. The problem is that if the clients copy their own .dll files (especially QT5Core.dll) and put it into the project, it works in their PCs; not in mine. I also used Dependency Walker to see the difference between QT5Core.dlls but i can't find out.
    So i don't understand what's really happening inside? I think on the server, everyone using the same .dlls files in the project , .....
    Thanks in advance for any advise.

    jsulmJ 1 Reply Last reply
    0
    • M manuntn08

      I have been in a (QT & C++) project. When I build and release a new version, it works well in my Pc, i put it on the server for clients, so many clients reported that it can't save image functionality in Qt5.
      In fact, i have just changed Qt4 to Qt5 for a while. In the past, i never saw this issue. I tested so many times and it worked in my PC and also on the server in my own PC. The problem is that if the clients copy their own .dll files (especially QT5Core.dll) and put it into the project, it works in their PCs; not in mine. I also used Dependency Walker to see the difference between QT5Core.dlls but i can't find out.
      So i don't understand what's really happening inside? I think on the server, everyone using the same .dlls files in the project , .....
      Thanks in advance for any advise.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @manuntn08 Are you maybe missing plug-ins?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      2
      • jsulmJ jsulm

        @manuntn08 Are you maybe missing plug-ins?

        M Offline
        M Offline
        manuntn08
        wrote on last edited by
        #3

        @jsulm said in QT5 QImage::save function doesn't work in some PC s:

        plug-ins

        Thanks for your advise, but i don't know how to check plug-ins, can you detail a little more how to do it ?

        jsulmJ 1 Reply Last reply
        0
        • M manuntn08

          @jsulm said in QT5 QImage::save function doesn't work in some PC s:

          plug-ins

          Thanks for your advise, but i don't know how to check plug-ins, can you detail a little more how to do it ?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @manuntn08 If you say saving pictures does not work - what does it mean exactly? Are there any errors? Are the files corrupted?
          You can find plug-ins in your Qt installation. If you deploy your app you should add needed plug-ins to it. There are plug-ins for image formats as well (plugins/imageformats).
          See http://doc.qt.io/qt-5/windows-deployment.html

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply
          1
          • jsulmJ jsulm

            @manuntn08 If you say saving pictures does not work - what does it mean exactly? Are there any errors? Are the files corrupted?
            You can find plug-ins in your Qt installation. If you deploy your app you should add needed plug-ins to it. There are plug-ins for image formats as well (plugins/imageformats).
            See http://doc.qt.io/qt-5/windows-deployment.html

            M Offline
            M Offline
            manuntn08
            wrote on last edited by
            #5

            @jsulm in fact, when i tested in local or also on the server of my own PC, it worked. But another PC didn't work. The save function returns false; when i deploy my app, i just build->release, after that, i put (.exe file + .dlls necessary in the project) on the server. I did this way so many times in the past with QT4, and it worked. Now, i have changed to QT5, and this issue appeared.

            jsulmJ D 2 Replies Last reply
            0
            • M manuntn08

              @jsulm in fact, when i tested in local or also on the server of my own PC, it worked. But another PC didn't work. The save function returns false; when i deploy my app, i just build->release, after that, i put (.exe file + .dlls necessary in the project) on the server. I did this way so many times in the past with QT4, and it worked. Now, i have changed to QT5, and this issue appeared.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @manuntn08 Try this: set QT_DEBUG_PLUGINS=1 before starting your app in a terminal window, then start your app and check the output on the console (post the output here).
              See https://doc.qt.io/qt-5.10/deployment-plugins.html

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              2
              • M manuntn08

                @jsulm in fact, when i tested in local or also on the server of my own PC, it worked. But another PC didn't work. The save function returns false; when i deploy my app, i just build->release, after that, i put (.exe file + .dlls necessary in the project) on the server. I did this way so many times in the past with QT4, and it worked. Now, i have changed to QT5, and this issue appeared.

                D Offline
                D Offline
                Devopia53
                wrote on last edited by
                #7

                @manuntn08

                What's the result of QImageReader::supportedImageFormats()?

                1 Reply Last reply
                1

                • Login

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