Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Unsupported image format in android Qt5.15.2
Forum Updated to NodeBB v4.3 + New Features

Unsupported image format in android Qt5.15.2

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 2 Posters 1.4k 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.
  • md2012M Offline
    md2012M Offline
    md2012
    wrote on last edited by
    #1

    Hi, hope your doing fine.
    I have a problem with my application, while it runs with no problem on windows using Qt5.15.2 Mingw kit, it's not running properly on android and can't load svg files on Clang Multi abi.

    qrc:/qml/General/Icon.qml:29:5: QML Image: Error decoding: qrc:/resources/Images/General/meca_white_24dp.svg: Unsupported image format
    
    1 Reply Last reply
    0
    • md2012M Offline
      md2012M Offline
      md2012
      wrote on last edited by
      #4

      Adding widgets and svg to qmake file fixed it for me.

      QT += quick svg widgets
      
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        Looks like you do not have the SVG module deployed with your Androïd application.

        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
        • md2012M Offline
          md2012M Offline
          md2012
          wrote on last edited by
          #3

          After taking a closer look at logs, i get this:

          -- Skipping D:/Qt/Qt5.15.2/5.15.2/android/plugins/iconengines/libplugins_iconengines_qsvgicon_arm64-v8a.so. It has unmet dependencies: lib/libQt5Svg_arm64-v8a.so,lib/libQt5Widgets_arm64-v8a.so.
            -- Skipping D:/Qt/Qt5.15.2/5.15.2/android/plugins/imageformats/libplugins_imageformats_qsvg_arm64-v8a.so. It has unmet dependencies: lib/libQt5Svg_arm64-v8a.so,lib/libQt5Widgets_arm64-v8a.so.
          
          1 Reply Last reply
          0
          • md2012M Offline
            md2012M Offline
            md2012
            wrote on last edited by
            #4

            Adding widgets and svg to qmake file fixed it for me.

            QT += quick svg widgets
            
            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