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

Qt 5.9: Test QtQml/qqmlincubator_incubateWhile.py fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: dev
    • Fix Version/s: dev
    • Component/s: PySide
    • Labels:
    • Environment:
      Linux, Python 3, Qt 5.9 + Clang parser
    • Commits:
      44ae7457c8e69e1db0ade7a614aa292f169f0d9d

      Description

      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?

        Attachments

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes