Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Image cannot be decoded depending on build mode
Forum Updated to NodeBB v4.3 + New Features

Image cannot be decoded depending on build mode

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 341 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.
  • D Offline
    D Offline
    dmhk_4ss
    wrote on last edited by dmhk_4ss
    #1

    The Image can't decode with some build mode.
    Only build mode "Debug" can decode correctly.
    It is very strange.
    Does anyone know how can I resolve this issue ?

    [Build mode result]

    • Debug: OK
    • Minimum size release: NG
    • Release: NG
    • Release with Debug Information: NG

    [Error message]
    QML Image: Error decoding: qrc:/Resources/image/sample_image.jpg: Unsupported image format

    [Environment]
    Qtcreator

    • Qt Creator 4.12.2
    • Based on Qt 5.14.2 (MSVC 2017, 32 bit)
    • Built on Jun 2 2020 01:31:56
    • From revision 33c5ff216a

    System

    • Qt 5.14.2 (i386-little_endian-ilp32 shared (dynamic) release build; by MSVC 2017) on "windows"
    • OS: Windows 10 Version 2004 [winnt version 10.0.19041]
    • Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2
    • Environment:
    • Features: QT_NO_EXCEPTIONS
    jsulmJ 1 Reply Last reply
    0
    • D dmhk_4ss

      The Image can't decode with some build mode.
      Only build mode "Debug" can decode correctly.
      It is very strange.
      Does anyone know how can I resolve this issue ?

      [Build mode result]

      • Debug: OK
      • Minimum size release: NG
      • Release: NG
      • Release with Debug Information: NG

      [Error message]
      QML Image: Error decoding: qrc:/Resources/image/sample_image.jpg: Unsupported image format

      [Environment]
      Qtcreator

      • Qt Creator 4.12.2
      • Based on Qt 5.14.2 (MSVC 2017, 32 bit)
      • Built on Jun 2 2020 01:31:56
      • From revision 33c5ff216a

      System

      • Qt 5.14.2 (i386-little_endian-ilp32 shared (dynamic) release build; by MSVC 2017) on "windows"
      • OS: Windows 10 Version 2004 [winnt version 10.0.19041]
      • Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2
      • Environment:
      • Features: QT_NO_EXCEPTIONS
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @dmhk_4ss said in Image cannot be decoded depending on build mode:

      Unsupported image format

      Sounds like the jpeg plug-in is only available as debug version.
      Does your Qt installation have qjpeg.dll file?
      Do you start your app from QtCreator or do you deploy it?

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

      D 1 Reply Last reply
      2
      • jsulmJ jsulm

        @dmhk_4ss said in Image cannot be decoded depending on build mode:

        Unsupported image format

        Sounds like the jpeg plug-in is only available as debug version.
        Does your Qt installation have qjpeg.dll file?
        Do you start your app from QtCreator or do you deploy it?

        D Offline
        D Offline
        dmhk_4ss
        wrote on last edited by dmhk_4ss
        #3

        @jsulm said in Image cannot be decoded depending on build mode:

        qjpeg.dll

        Thank you for your reply.
        I found "qjpeg.dll" in the "C:\Qt\Tools\QtCreator\bin\plugins\imageformats" and "C:\Qt\5.13.0\msvc2017\plugins\imageformats"

        Do you start your app from QtCreator or do you deploy it?

        I started my app from QtCreator.

        Thanks.

        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