[PyQt] QGraphicsView .resetMatrix() missing

Maurizio Berti maurizio.berti at gmail.com
Wed Jul 10 17:58:28 BST 2019


Just use resetTransform(), it's the same according to the source code too.
See https://stackoverflow.com/a/54313821

Maurizio

Il mer 10 lug 2019 17:37 Art <artanidos at gmail.com> ha scritto:

> Hi
>
> I have tried to call resetMatrix() on a QGraphicsView and I am getting
> this error:
> AttributeError: 'QGraphicsView' object has no attribute 'resetMatrix'
>
> Is there a workaround?
> I want to zoom/scale my view.
>
> Thanks
> Art
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20190710/4dc09e9d/attachment.html>


More information about the PyQt mailing list