Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
6.2.4
-
None
Description
The example specified on this page:
https://doc.qt.io/qtforpython-6/overviews/qtwidgets-graphicsview-elasticnodes-example.html
the sources is some mixup of c++ and python code, completely unusable
with google search I can see correct python sources on this page, I verified it is working correctly (with some simple fix below) with PySide6:
https://doc-snapshots.qt.io/qtforpython-6.0/examples/example_widgets_graphicsview_elasticnodes.html
the fix needed:
event.delta() need to be replaced to
event.angleDelta().y()
and
matrix() need to be replaced to transform()
Attachments
For Gerrit Dashboard: PYSIDE-2056 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
431969,4 | Documentation/example_gallery: Use relative paths in auto-generated titles | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
432007,2 | WIP: Remove the C++ example pages from documentation | dev | pyside/pyside-setup | Status: ABANDONED | -2 | 0 |
432097,2 | Documentation/example_gallery: Use relative paths in auto-generated titles | 6.3 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
432118,3 | Documentation/example_gallery: Use relative paths in auto-generated titles | tqtc/lts-6.2 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |
432895,8 | Remove the ported Python examples pages from additionaldocs.lst | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
433039,2 | Remove the ported Python examples pages from additionaldocs.lst | 6.3 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
433040,2 | Remove the ported Python examples pages from additionaldocs.lst | tqtc/lts-6.2 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |