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. Qt JPEG dependency
Qt 6.11 is out! See what's new in the release blog

Qt JPEG dependency

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 1.5k Views 1 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.
  • X Offline
    X Offline
    xtingray
    wrote on last edited by
    #1

    Hi,
    I am developing a basic application that loads images with different formats and displays them in a QGraphicsView object. The code is very simple and its available at: https://github.com/xtingray/image.test/blob/master/mainwindow.cpp

    The application works perfectly in my Windows system using JPEG and PNG files. In fact, I created a zip file with the application deployment: http://maefloresta.com/tmp/win/image.zip

    That zip file contains these components:

    • image.exe
    • platforms/qwindows.dll
    • Qt5Core.dll
    • Qt5Gui.dll
    • Qt5Widgets.dll

    Now, this is my problem: if I try to run my application from any Windows system without Qt previously installed, I can't display JPEG files. Although my program doesn't crash, the JPEG image never is displayed. The QPixmap object can't load the image file neither using the constructor or the methods load() / loadFromData(). With PNG files everything works perfectly.

    My first guess is that I am missing some kind of DLL dependency related to the JPEG format, so I installed the Dependency Walker tool to find out the missing library, but no warning record is reported. By the way, the Qt installer I am using is this: qt-5.5.0-x64-mingw510r0-sjlj-rev0.exe

    I appreciate any comment/suggestion about this issue. Thanks!


    Qt Developer

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alex_malyu
      wrote on last edited by
      #2

      @xtingray said:

      JPEG

      You are missing plugins/imageformats. See:

      http://doc.qt.io/qt-5/qtimageformats-index.html
      http://doc.qt.io/qt-5/deployment-plugins.html

      JKSHJ 1 Reply Last reply
      2
      • A alex_malyu

        @xtingray said:

        JPEG

        You are missing plugins/imageformats. See:

        http://doc.qt.io/qt-5/qtimageformats-index.html
        http://doc.qt.io/qt-5/deployment-plugins.html

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        @alex_malyu said:

        You are missing plugins/imageformats.

        @alex_malyu is right. Here's a diagram that shows where qjpeg.dll should go:

        Deployment

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        2

        • Login

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