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

UI doesn't update when Python QAbstractListModel changes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.12.2
    • PySide
    • None
    • Kubuntu 18, Python 3.6, latest PySide 2
    • 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

            crmaurei Cristian Maureira-Fredes
            myusername1 graham matthews
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes