Important: Please read the Qt Code of Conduct -

QGraphicsSVGItem ignores (some) clipping paths. Why?

  • This SVG image is correctly rendered in Firefox and Inkscape, but for some reason, when using QGraphicsSVGItem without anything fancy, it renders this way:


    For reference, this is what it looks like on firefox:


    As you can see, the back of the card is not supposed to go beyond the white border.

    Am I doing something wrong? Is there a (preferably easy) fix?

    A minimal working example, as you can see I am not doing anything fancy at all

    import sys
    from PyQt5 import QtWidgets, QtCore, Qt, QtGui
    app = QtWidgets.QApplication(sys.argv)
    scene = QtWidgets.QGraphicsScene()
    graphics_view = QtWidgets.QGraphicsView()

Log in to reply