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

Model/View Tutorial and Model/View Programming examples are mixed language / bad syntax

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 6.x
    • Documentation
    • None
    • All
    • c4a266e38f (pyside/pyside-setup/dev) c4a266e38f (pyside/tqtc-pyside-setup/dev) a324390fea (pyside/pyside-setup/6.3) a324390fea (pyside/pyside-setup/wip/6.3_pypy) a324390fea (pyside/tqtc-pyside-setup/6.3) a324390fea (pyside/tqtc-pyside-setup/wip/6.3_pypy)

    Description

      These two documents appear to be very important, but the generated code examples end up being a mix of C++ and python, or missing critical information.

      https://doc.qt.io/qtforpython/overviews/modelview.html

      https://doc.qt.io/qtforpython/overviews/model-view-programming.html#model-view-programming

      They both seem to break in a similar place, which can be found by searching for Q_OBJECT in the page. From there forward the code examples tend to be unusable.

      Seems directly related to explanation in PYSIDE-1952.

      I have found more of these as I read through the PySide6 docs, if there's something specific you'd like me to do with the other issues, please let me know

      qtbase/src/widgets/doc/src/modelview.qdoc
      Snippets: qtbase/examples/widgets/tutorials/modelview

      qtbase/src/widgets/doc/src/model-view-programming.qdoc (same snippets)
      https://doc.qt.io/qt-6/model-view-programming.html#model-view-programming

      Attachments

        Issue Links

          For Gerrit Dashboard: PYSIDE-1984
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              marcidy Matt A
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes