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

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 6.x
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              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