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

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.5, 5.13.1
    • 5.12.3
    • Shiboken
    • None
    • All
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: