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 IMAGE LOAD ERROR
Qt 6.11 is out! See what's new in the release blog

SVG IMAGE LOAD ERROR

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 891 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.
  • C Offline
    C Offline
    Cassandre Neufville
    wrote on last edited by
    #1

    I create a SVG image with inkscape with symbol like for example NAND logics.
    When I load this SVG image with my code and even with the basic example given with qt "SVG VIEWVER EXAMPLE", I have the same issue.
    My symbol don't show up and I have this error for every symbols :
    qt.svg: link #NAND is undefined!
    or
    qt.svg: link #Nand_Gate is undefined! (this with the NAND logic symbol basic with inskcape)

    Can you help me ?

    Christian EhrlicherC 1 Reply Last reply
    0
    • C Cassandre Neufville

      I create a SVG image with inkscape with symbol like for example NAND logics.
      When I load this SVG image with my code and even with the basic example given with qt "SVG VIEWVER EXAMPLE", I have the same issue.
      My symbol don't show up and I have this error for every symbols :
      qt.svg: link #NAND is undefined!
      or
      qt.svg: link #Nand_Gate is undefined! (this with the NAND logic symbol basic with inskcape)

      Can you help me ?

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

      Please take a look at https://doc.qt.io/qt-6/svgrendering.html : "Qt supports the static features of SVG 1.2 Tiny. ECMA scripts and DOM manipulation are currently not supported." - make sure your svg does not contain other features.

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

      C 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        Please take a look at https://doc.qt.io/qt-6/svgrendering.html : "Qt supports the static features of SVG 1.2 Tiny. ECMA scripts and DOM manipulation are currently not supported." - make sure your svg does not contain other features.

        C Offline
        C Offline
        Cassandre Neufville
        wrote on last edited by
        #3

        @Christian-Ehrlicher i tested my svg image with with the example proposed "SVG VIEWER" in the link you quoted me, and changing the svg image with mine I have the same problem.

        Christian EhrlicherC 1 Reply Last reply
        0
        • C Cassandre Neufville

          @Christian-Ehrlicher i tested my svg image with with the example proposed "SVG VIEWER" in the link you quoted me, and changing the svg image with mine I have the same problem.

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

          @Cassandre-Neufville I don't understand what you want to tell us.

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

          C 1 Reply Last reply
          1
          • Christian EhrlicherC Christian Ehrlicher

            @Cassandre-Neufville I don't understand what you want to tell us.

            C Offline
            C Offline
            Cassandre Neufville
            wrote on last edited by
            #5

            @Christian-Ehrlicher i search a solution to my problem, to load my svg image with symbols

            JonBJ 1 Reply Last reply
            0
            • C Cassandre Neufville

              @Christian-Ehrlicher i search a solution to my problem, to load my svg image with symbols

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #6

              @Cassandre-Neufville

              But @Christian-Ehrlicher has pointed you to the documentation saying this is not supported in Qt's SVG, it is limited.

              I don't know whether it might work in QtWebEngine, which is the Chromium browser engine. That might show SVG.

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved