QSvgWidget - problem with some SVG files
-
Hi, I use the QSvgWidget to display SVG files.
But sometimes a SVG file is not shown in correct way.
Inkscape, all picture-viewers based on gnome (shotwell, pix, gThumb, geeqie, eog, mirage, ristretto, pqiv, viewnior, qiv) and the QWebEngineView have no trouble to show the correct SVG.
QSvgWidget and all image-viewer based on QT (lximage-qt, phototonic, nomacs, showfoto, gwenview and xnviewmp) have problme to show the SVG in correct way.

Left side is QT with lximage-qt, right side is eog.
Same is with systemd-analyze plot > start.svg command:

What do we need to make SVG files look like they should do?
(Sorry I am not able to upload the SVG file itself, please let me know how to do...)
-
Hi, I use the QSvgWidget to display SVG files.
But sometimes a SVG file is not shown in correct way.
Inkscape, all picture-viewers based on gnome (shotwell, pix, gThumb, geeqie, eog, mirage, ristretto, pqiv, viewnior, qiv) and the QWebEngineView have no trouble to show the correct SVG.
QSvgWidget and all image-viewer based on QT (lximage-qt, phototonic, nomacs, showfoto, gwenview and xnviewmp) have problme to show the SVG in correct way.

Left side is QT with lximage-qt, right side is eog.
Same is with systemd-analyze plot > start.svg command:

What do we need to make SVG files look like they should do?
(Sorry I am not able to upload the SVG file itself, please let me know how to do...)
@dunschc said in QSvgWidget - problem with some SVG files:
What do we need to make SVG files look like they should do?
Make sure to use only the features from svg which qt supports.
-
@dunschc said in QSvgWidget - problem with some SVG files:
What do we need to make SVG files look like they should do?
Make sure to use only the features from svg which qt supports.
Sorry, that not possible for me. Neither systemd-analyze nor PyMuPDF get_svg_image function (https://pymupdf.readthedocs.io/en/latest/page.html#Page.get_svg_image) are able to strip down SVG output to a QT compatibility level...
When there is no other possibility, I think I have to change toolkit or wait until QT will adopt more SVG functionality some day.