Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SVG file not loading qt 5.6.2 Windows
Forum Updated to NodeBB v4.3 + New Features

SVG file not loading qt 5.6.2 Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 3 Posters 862 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    Did you add "QT += svg" to your .pro file ?

    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
    1
    • D Offline
      D Offline
      dushabest85
      wrote on last edited by
      #3

      Yes. The program works in 5.14 and does not work in 5.6

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Do you have that issue only with this SVG file or with others as well ?

        Check with the examples that comes with the SVG module from 5.6.

        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
        • D Offline
          D Offline
          dushabest85
          wrote on last edited by
          #5

          I have two kinds of svg files. The first file with an additional layer (refresh_.svg) and the second file without an additional layer. I cannot find in the documentation why the file with the additional layer is not loaded.

          1 Reply Last reply
          0
          • Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #6

            Maybe because of Qt supports the static features of SVG 1.2 Tiny. ECMA scripts and DOM manipulation are currently not supported.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            1 Reply Last reply
            1
            • D Offline
              D Offline
              dushabest85
              wrote on last edited by
              #7

              The description https://doc.qt.io/archives/qt-5.6/svgrendering.html is the same for 5.6 and 5.14. I read the description but found no difference. However 5.6 does not work and 5.14 does ...

              1 Reply Last reply
              0
              • Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by Christian Ehrlicher
                #8

                But there are still a lot of misc changes to this module. Maybe one of them affects your svg file. Don't use such an ancient Qt version. Are you sure the Qt svg plugin is available in the imageformats plugins subdir?

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  dushabest85
                  wrote on last edited by dushabest85
                  #9

                  Yes, svg is available in the catalog. I am using this old version because the program must work Windows XP

                  1 Reply Last reply
                  0
                  • Christian EhrlicherC Offline
                    Christian EhrlicherC Offline
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    Then you have to debug by yourself why it won't load.

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      dushabest85
                      wrote on last edited by
                      #11

                      Is the exact reason unknown? Maybe this is a bug in this case...

                      Christian EhrlicherC 1 Reply Last reply
                      0
                      • D dushabest85

                        Is the exact reason unknown? Maybe this is a bug in this case...

                        Christian EhrlicherC Offline
                        Christian EhrlicherC Offline
                        Christian Ehrlicher
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        @dushabest85 I won't dig into ancient QtSvg sources for you to search for an error. You have to do it by your own.

                        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                        Visit the Qt Academy at https://academy.qt.io/catalog

                        D 1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          dushabest85
                          wrote on last edited by
                          #13

                          Maybe some other person knows the answer? Why is the error QPainter :: begin: Paint device returned engine == 0, type: 3?

                          1 Reply Last reply
                          0
                          • Christian EhrlicherC Christian Ehrlicher

                            @dushabest85 I won't dig into ancient QtSvg sources for you to search for an error. You have to do it by your own.

                            D Offline
                            D Offline
                            dushabest85
                            wrote on last edited by
                            #14

                            @Christian-Ehrlicher Thank you!

                            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