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. QCustomPlot saveJpg not working on all computers

QCustomPlot saveJpg not working on all computers

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 2 Posters 1.4k Views 2 Watching
  • 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.
  • T Offline
    T Offline
    Tomax63
    wrote on last edited by
    #1

    Hello all

    I use QCustomPlot for diagrams and I am really happy with it. On my developing machines the export of Jpg does work fine. But on the PCs of my colleagues, it produces a 0byte file (but with correct name)

    Has anyone met such a problem too?

    Thomas

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you deploy the application on your colleague's machine ?
      If so how did you do it ?
      Did you check that you have also the image formats plugins deployed ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • T Offline
        T Offline
        Tomax63
        wrote on last edited by
        #3

        Hi thanks for such a quick response.

        I have deployed the software by InnoSetup, including all the libraries. Are there special libraries needed for qcustomplot that I can include?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you use windeployqt to prepare the files before making the installer with InnoSetup ?

          Jpeg support has nothing to with QCustomPlot unless they wrote their own version.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • T Offline
            T Offline
            Tomax63
            wrote on last edited by
            #5

            I never heard of or used windeployqt.

            That is new o me - I will try. Any tipps on how to make it easy fo a newbie?

            1 Reply Last reply
            0
            • T Offline
              T Offline
              Tomax63
              wrote on last edited by
              #6

              I used it and it created some .ddl files. are those the ones I need to include in InnoSetup?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                If you put your executable in an empty folder and call windeplyoqt in it, it should give you a functional application with all dependencies needed that you can pack with InnoSetup.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                2
                • T Offline
                  T Offline
                  Tomax63
                  wrote on last edited by
                  #8

                  That's what I did, but the saveJpeg still does not work.

                  windeployqt generated a lot of files which I completely included into the InnoSetup process and they all are installed.
                  Included are files like qjpeg.dll or qico.dll which I assume as the libraries that were missing.

                  Is there a chance to rtreive an error message when QCustomPlot can't export correctly because of a missing dll?

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    Tomax63
                    wrote on last edited by
                    #9

                    Do the imageformats/*.dll have to be in exactly that folder or in the system folder of windows?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      Don't put anything in the system folder, that's very bad practice.

                      The layout of the folders besides your application is described in the documentation I linked before.

                      windeployqt should be doing the right job in that regard.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

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