qt link path3926 hasn't been detected
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
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.
Thanks for your quick answer @Wieland
Setting this variable doesn't change anything
Do you know when this flag is available from ?
Seems to suggest its from 5.9 ?
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.
@mrjj Oh, you're right, it's new in 5.9.
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.
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?
I'm using 5.7 too. I used them with QPixmap though.
Ok, how do you get to see the errors.
I just assigned the svg to qres and into QLabel