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. qt link path3926 hasn't been detected

qt link path3926 hasn't been detected

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 3 Posters 5.2k Views 2 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.
  • N Offline
    N Offline
    nhatz_hk
    wrote on last edited by
    #1

    Hi everyone,

    I discover this topic.:
    Re: How to hide SVG warnings in console?

    The person was having the same problem I am having now.
    What did he see?

    Does anyone know how to solve the problem? I don't even know what the problem is, so explaining what is happening would be nice too. I am loading some SVG files in my program. Is there a problem with SVG files in general or would it be a problem with mines?

    Thanks for taking the time

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! The problem is that your SVG files are broken. E.g. they reference gradiants that have not been defined. Obviously the SVG engine is fault tolerant and tries to render something, just giving the warnings you see. If you can't fix the files, you can suppress these warnings. Easy way to do this is by setting the following environment variable: QT_LOGGING_RULES=qt.svg.warning=false. For more info / more options, see QLoggingCategory Class.

      mrjjM 1 Reply Last reply
      4
      • N Offline
        N Offline
        nhatz_hk
        wrote on last edited by
        #3

        Thanks for your quick answer @Wieland
        Setting this variable doesn't change anything

        mrjjM 1 Reply Last reply
        0
        • ? A Former User

          Hi! The problem is that your SVG files are broken. E.g. they reference gradiants that have not been defined. Obviously the SVG engine is fault tolerant and tries to render something, just giving the warnings you see. If you can't fix the files, you can suppress these warnings. Easy way to do this is by setting the following environment variable: QT_LOGGING_RULES=qt.svg.warning=false. For more info / more options, see QLoggingCategory Class.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Wieland
          Hi
          Do you know when this flag is available from ?
          https://bugreports.qt.io/browse/QTBUG-52079

          Seems to suggest its from 5.9 ?

          ? 1 Reply Last reply
          1
          • N nhatz_hk

            Thanks for your quick answer @Wieland
            Setting this variable doesn't change anything

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @nhatz_hk
            Could you upload one of the broken svg files so we can see inside it ?
            (use external site, post link here)

            Also download InkScape or LibraOffice Draw and try to open it.
            Resaving it , might fix the error.

            1 Reply Last reply
            1
            • mrjjM mrjj

              @Wieland
              Hi
              Do you know when this flag is available from ?
              https://bugreports.qt.io/browse/QTBUG-52079

              Seems to suggest its from 5.9 ?

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              @mrjj Oh, you're right, it's new in 5.9.

              1 Reply Last reply
              0
              • N Offline
                N Offline
                nhatz_hk
                wrote on last edited by nhatz_hk
                #7

                @mrjj
                I took them from this kit
                EDIT:
                I open and save them with lodraw

                lodraw --convert-to svg *.svg 
                

                They just get worst in my opinion. I barely see the item now and the application keep yelling:

                Could not resolve property : pattern1
                Could not resolve property : pattern2

                The program start lagging too, I had to kill it.

                mrjjM 1 Reply Last reply
                0
                • N nhatz_hk

                  @mrjj
                  I took them from this kit
                  EDIT:
                  I open and save them with lodraw

                  lodraw --convert-to svg *.svg 
                  

                  They just get worst in my opinion. I barely see the item now and the application keep yelling:

                  Could not resolve property : pattern1
                  Could not resolve property : pattern2

                  The program start lagging too, I had to kill it.

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @nhatz_hk

                  Hi
                  The files seems to be made with inkscape and it open them
                  flawless. ( nothing missing)

                  I inserted the spaceship into a QLabel and saw no errors. (Qt 5.7)

                  What version are you using?

                  1 Reply Last reply
                  1
                  • N Offline
                    N Offline
                    nhatz_hk
                    wrote on last edited by nhatz_hk
                    #9

                    @mrjj
                    I'm using 5.7 too. I used them with QPixmap though.

                    mrjjM 1 Reply Last reply
                    0
                    • N nhatz_hk

                      @mrjj
                      I'm using 5.7 too. I used them with QPixmap though.

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @nhatz_hk
                      Ok, how do you get to see the errors.
                      I just assigned the svg to qres and into QLabel

                      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