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. why Qt4android can not show images has format SVG??
Forum Updated to NodeBB v4.3 + New Features

why Qt4android can not show images has format SVG??

Scheduled Pinned Locked Moved Mobile and Embedded
qmlsvgshowandroid
7 Posts 3 Posters 2.7k Views 3 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.
  • S Offline
    S Offline
    stackprogramer
    wrote on 1 Apr 2016, 20:03 last edited by stackprogramer 4 Jan 2016, 20:21
    #1

    hi,i created my app for android,
    when i usesjpg image it is showed in mingw mode and android mode correctly.

    when i uses SVG image it is not showed in mode android but it is showed correctly in mingw mode!!!
    i mention that my app android uses QML and js language
    i even test

    QT += svg
    

    it is same before.how we can show SVG format images in android!!!!!!!
    see image my app4android it is not show SVG!!
    image Qt show svg errors4android
    please guide me

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 1 Apr 2016, 22:53 last edited by
      #2

      Hi,

      Did you check that the SVG module and plugin are properly deployed ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply 6 Apr 2016, 19:04
      0
      • S SGaist
        1 Apr 2016, 22:53

        Hi,

        Did you check that the SVG module and plugin are properly deployed ?

        S Offline
        S Offline
        stackprogramer
        wrote on 6 Apr 2016, 19:04 last edited by stackprogramer 4 Jun 2016, 19:20
        #3

        @SGaist
        sorry fo my delay.
        i uses Qml in my app.i didn't use c++. which module should i used in Qt?
        in only add

         QT+=svg
        

        i don't want use c++.i want to use qml and jsonly.
        thanks

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 6 Apr 2016, 20:55 last edited by
          #4

          The language used is not the question, it's providing the dependencies.

          All the items you use in QML are backed up by C++ code.

          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
          • V Offline
            V Offline
            vlada
            wrote on 7 Apr 2016, 08:20 last edited by
            #5

            Try to delete the deployment folder. When I first compiled my Android application, SVG pictures were missing. So i added the

            QT += svg
            

            but it didn't help. But when I deleted the deployment folder and compiled my program again, it started to work. There probably remains something in this directory which is not correctly overwritten.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 7 Apr 2016, 10:29 last edited by
              #6

              Usually when you change the list of modules used by your application, it's a good idea to re-run qmake before building.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              S 1 Reply Last reply 15 Jun 2016, 19:38
              0
              • S SGaist
                7 Apr 2016, 10:29

                Usually when you change the list of modules used by your application, it's a good idea to re-run qmake before building.

                S Offline
                S Offline
                stackprogramer
                wrote on 15 Jun 2016, 19:38 last edited by stackprogramer
                #7

                @SGaist @vlada
                thanks
                finally i built for apk android it works.....
                it's image
                image test svg for android
                goodluck

                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