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

Signalling a Slot containing a QFlags argument results in TypeError

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.12.3
    • Fix Version/s: 5.12.5, 5.13.1
    • Component/s: Shiboken
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      7dba09d7c4007e96fb0a39bf6f6e740cd207324a (pyside/pyside-setup/5.12)

      Description

      For example:
      When I connect QImageCapture.captureDestinationChanged signal to a slot captureDestinationChangedSlot and then call QImageCapture.setCaptureDestination(QImageCapture.CaptureToBuffer) it results in a TypeError: Can't call meta function because I have no idea how to handle QCameraImageCapture::CaptureDestinations

      Attached please find the minimal_example.py to reproduce the issue and the proposed bugfix.diff which seems to fix the problem.

        Attachments

        1. bugfix.diff
          2 kB
        2. minimal_example.py
          1 kB
        3. pyside1029_generated_code.txt
          2 kB
        For Gerrit Dashboard: PYSIDE-1029
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              kleint Friedemann Kleint
              Reporter:
              sria91 Srikanth Anantharam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes