Is there a workaround for retrieving/creating a QPainterPath from existing widgets?
Unsolved
Qt for Python
-
I want to mess around with creating custom QGraphicsEffects for existing widgets.
I want to be able to retrieve or create the QPainterPath of a target widget (it's shape, not the bounding box), but Qt doesn't provide a direct method to do so.
It's possible to retrieve the pixmap of the target widget with
self.sourcePixmap(Qt.CoordinateSystem.DeviceCoordinates)
, so maybe there's some workaround I haven't found to convert or create a QPainterPath from that pixmap?