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

UI doesn't update when Python QAbstractListModel changes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.2
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Environment:
      Kubuntu 18, Python 3.6, latest PySide 2
    • Platform/s:
      Linux/X11

      Description

      When running the attached code the UI doesn't update until i resize the window, and I get the following error:

      QObject::connect: Cannot queue arguments of type 'QQmlChangeSet'
      (Make sure 'QQmlChangeSet' is registered using qRegisterMetaType().)

      I am not sure if this isĀ  PySide 2 bug, an underlying QT issue, or I am supposed to do something in my code to make this work.

      Also I reported the issue as 5.12.2 of QT but it may be in 5.11.2, as I have both installed.

        Attachments

        1. main.py
          2 kB
        2. view.qml
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              crmaurei Cristian Maureira-Fredes
              Reporter:
              myusername1 graham matthews
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes