QPixmap not read svg
-
@Mikeeeeee How did you install Qt on Windows? How do you read SVG (show code)?
-
@Mikeeeeee said in QPixmap not read svg:
./images/logo.svg
this is a relative path. You should at least check whether pixmap is null or not: https://doc.qt.io/qt-5/qpixmap.html#isNull
Also, check whether you have the SVG plug-in: plugins/imageformats/libqsvg.so -
@Mikeeeeee said in QPixmap not read svg:
Hwot me need to do?
Search for *svg* in your PyQt set-up...
-
I have only SVGExporter.py in pyqtgraph
-
@Mikeeeeee So, no qsvg.dll? If so, then that's the reason why you can't load SVG images.
-
@Mikeeeeee Maybe you need to install the SVG plug-in? I never used conda, so check whether this plug-in requires an additional package to be installed.
-
@Mikeeeeee said in QPixmap not read svg:
What is the correct name of this plugin?
I already gave it you before: qsvg.dll