Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2056

Elastic Nodes python Example - sources are wrong/not usable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 6.4.0
    • 6.2.4
    • Documentation
    • None
    • All

    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

        Activity

          People

            kleint Friedemann Kleint
            qt_python_user Zvi Adamovski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: