[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] QGraphicsView .resetMatrix() missing
From: Maurizio Berti <maurizio.berti () gmail ! com>
Date: 2019-07-10 16:58:28
Message-ID: CAPn+-XRASSMbGBf_fi+iQCTRVbHSdao+NW3dFtSWnEfJSy1ALA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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@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@riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
[Attachment #5 (text/html)]
<div dir="auto">Just use resetTransform(), it's the same according to the source \
code too.<div dir="auto">See <a \
href="https://stackoverflow.com/a/54313821">https://stackoverflow.com/a/54313821</a><br><div \
dir="auto"><br></div><div dir="auto">Maurizio</div></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">Il mer 10 lug 2019 17:37 Art \
<<a href="mailto:artanidos@gmail.com">artanidos@gmail.com</a>> ha \
scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br> <br>
I have tried to call resetMatrix() on a QGraphicsView and I am getting <br>
this error:<br>
AttributeError: 'QGraphicsView' object has no attribute \
'resetMatrix'<br> <br>
Is there a workaround?<br>
I want to zoom/scale my view.<br>
<br>
Thanks<br>
Art<br>
<br>
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank" \
rel="noreferrer">PyQt@riverbankcomputing.com</a><br> <a \
href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer \
noreferrer" target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</blockquote></div>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic