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

Qt 5.9: Test QtQml/qqmlincubator_incubateWhile.py fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 6.0
    • None
    • PySide
    • Linux, Python 3, Qt 5.9 + Clang parser
    • 44ae7457c8e69e1db0ade7a614aa292f169f0d9d

      In QtQml/qqmlincubator_incubateWhile.qml, a QML item defines a signal:

       signal shouldInterrupt()
      

      The test fails in 5.9

      ======================================================================
      ERROR: testIncubateWhileCall (__main__.TestBug)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "QtQml/qqmlincubator_incubateWhile.py", line 78, in testIncubateWhileCall
          root.shouldInterrupt.connect(controller.interrupter)
      AttributeError: 'PySide2.QtQuick.QQuickItem' object has no attribute 'shouldInterrupt'
      

      However, when applying pyside484_intro.diff which adds a function dumping out the QMetaObject, the test passes. It looks like the signals are delay-initialized?

        1. pyside484_intro.diff
          2 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            alexandru.croitor Alexandru Croitor
            kleint Friedemann Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes