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

[Multimedia] Cannot select USB webcam in camera example application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.10.0, 6.9.2
    • 6.9.1
    • Other
    • None
    • Windows
    • 2d72bad19 (dev), cfafb8333 (6.9)

    Description

      Environment:

       

      Windows 11 

      Qt Creator 17.0.0

      Qt 6.9.1

      Python 3.13

      PySide 6.9.1 Wheel

       

      Steps to reproduce:

      1. Ensure a USB webcam is connected to the PC.
      2. Run the camera example on Qt for Python.
      3. Try to select a USB webcam.

      Expected: The camera is selected.

      Actual: Only integrated camera is available, it's not possible to select a webcam.

      Traceback (most recent call last):
        File "C:\Users\lukas\workspace\pyside-setup\examples\multimedia\camera\camera.py", line 299, in updateCameraDevice
          self.setCamera(QCameraDevice(action))
                         ~~~~~~~~~~~~~^^^^^^^^
      TypeError: 'PySide6.QtMultimedia.QCameraDevice.__init__' called with wrong argument types:
        PySide6.QtMultimedia.QCameraDevice.__init__(QAction)
      Supported signatures:
        PySide6.QtMultimedia.QCameraDevice.__init__(other: PySide6.QtMultimedia.QCameraDevice, /, *, id: PySide6.QtCore.QByteArray | None = None, description: str | None = None, isDefault: bool | None = None, position: PySide6.QtMultimedia.QCameraDevice.Position | None = None, videoFormats: collections.abc.Sequence[PySide6.QtMultimedia.QCameraFormat] | None = None, correctionAngle: PySide6.QtMultimedia.QtVideo.Rotation | None = None)
        PySide6.QtMultimedia.QCameraDevice.__init__(*, id: PySide6.QtCore.QByteArray | None = None, description: str | None = None, isDefault: bool | None = None, position: PySide6.QtMultimedia.QCameraDevice.Position | None = None, videoFormats: collections.abc.Sequence[PySide6.QtMultimedia.QCameraFormat] | None = None, correctionAngle: PySide6.QtMultimedia.QtVideo.Rotation | None = None)
       

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            lkos Łukasz Kosiorowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes