Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Solved QCustomPlot saveJpg not working on all computers

    General and Desktop
    2
    10
    650
    Loading More Posts
    • 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
      Tomax63 last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 1
        • T
          Tomax63 last edited by

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 2
            • T
              Tomax63 last edited by

              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 Reply Quote 0
              • T
                Tomax63 last edited by

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

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  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 Reply Quote 2
                  • T
                    Tomax63 last edited by

                    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 Reply Quote 0
                    • T
                      Tomax63 last edited by

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

                      1 Reply Last reply Reply Quote 0
                      • SGaist
                        SGaist Lifetime Qt Champion last edited by

                        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 Reply Quote 0
                        • First post
                          Last post