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 .svg images is not showing ?
Forum Updated to NodeBB v4.3 + New Features

Why .svg images is not showing ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
9 Posts 4 Posters 2.6k 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.
  • T Offline
    T Offline
    trupti007
    wrote on last edited by
    #1

    When I am making a page dynamic in qml then all data are showing perfectly and the images which have .png extension are also showing but when it's comes to .svg images then its showing blank. on console the path is there and correct but in output i don't understand what's wrong. btw i am not showing local images , the images are from server

    jsulmJ 1 Reply Last reply
    0
    • T trupti007

      When I am making a page dynamic in qml then all data are showing perfectly and the images which have .png extension are also showing but when it's comes to .svg images then its showing blank. on console the path is there and correct but in output i don't understand what's wrong. btw i am not showing local images , the images are from server

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @trupti007 Which Qt version?
      Which OS?
      Check whether libqsvg.so has all dependencies (I assume Linux here):

      ldd libqsvg.so
      

      Can same SVG images be shown in an image viewer?

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

      T 1 Reply Last reply
      0
      • S Offline
        S Offline
        SimonSchroeder
        wrote on last edited by
        #3

        If you are using a .pro file then my first guess would be that you are missing QT += svg.

        1 Reply Last reply
        0
        • jsulmJ jsulm

          @trupti007 Which Qt version?
          Which OS?
          Check whether libqsvg.so has all dependencies (I assume Linux here):

          ldd libqsvg.so
          

          Can same SVG images be shown in an image viewer?

          T Offline
          T Offline
          trupti007
          wrote on last edited by
          #4

          @jsulm well i am using app studio and it has only qt creator inbuilt. so i'm not using all the component or features of qt

          J.HilkJ 1 Reply Last reply
          0
          • S Offline
            S Offline
            SimonSchroeder
            wrote on last edited by
            #5

            Does AppStudio use qmake in the background? If so, there should be somewhere a Qt project file ending in .pro. This file needs to contain a line QT += svg. Otherwise there should be a different way to tell AppStudio to add the Qt module for SVGs.

            T 1 Reply Last reply
            0
            • T trupti007

              @jsulm well i am using app studio and it has only qt creator inbuilt. so i'm not using all the component or features of qt

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @trupti007 what platform are you targeting ?
              IIRC iOS for example has currently (in qt) no support for SVG


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              T 1 Reply Last reply
              0
              • T Offline
                T Offline
                trupti007
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • J.HilkJ J.Hilk

                  @trupti007 what platform are you targeting ?
                  IIRC iOS for example has currently (in qt) no support for SVG

                  T Offline
                  T Offline
                  trupti007
                  wrote on last edited by
                  #8

                  @J-Hilk cross platform

                  1 Reply Last reply
                  0
                  • S SimonSchroeder

                    Does AppStudio use qmake in the background? If so, there should be somewhere a Qt project file ending in .pro. This file needs to contain a line QT += svg. Otherwise there should be a different way to tell AppStudio to add the Qt module for SVGs.

                    T Offline
                    T Offline
                    trupti007
                    wrote on last edited by
                    #9

                    @SimonSchroeder there is no such files

                    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