Search code examples
qtjpegimage-formats

Qt imageformats not supported even if plugins included


Qt image formats (jpeg) not supported in my app (builded with Qt 5.12 MinGW) on other computers. plugins already added to {appDir}/imageformats. I also tried to load qjpeg.dll dynaically by QLibrary::load().


Solution

  • In my case, I could add it by QtCore.QCoreApplication.addLibraryPath("dll-path")

    This code must be placed above the QApplication instance.

    Please make sure the path name again.

    And you add the code before making QtGui.QApplication instance.

    If this answer is out the point, I will delete it.