[PySide] How use QGraphicView, setWindow, setViewPort

Georges Arsouze georges.arsouze at gmail.com
Thu Apr 12 12:32:15 CEST 2012


Hi

How use QGraphicView, setWindow, setViewPort ?

There are files in attachment

I have a ui file interfaceDessin1.ui with only a QGraphicView (name
zoneDessin)
With this file i do interfaceDessin1.py
Then i do dessin1.py which use interfaceDessin1

How can i do for drawing lines, points, ... in zoneDessin
I want to use int coordinates in zoneDessin or real coordinates of my
mathematical universe

Sorry for my poor english
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120412/45a84278/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dessin1.py
Type: application/octet-stream
Size: 750 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120412/45a84278/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: interfaceDessin1.ui
Type: application/octet-stream
Size: 591 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120412/45a84278/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: interfaceDessin1.py
Type: application/octet-stream
Size: 796 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120412/45a84278/attachment-0002.obj>


More information about the PySide mailing list