Skip to content

CameraDevice

Qt Base Class: QCameraDevice

Signature: QCameraDevice(self) -> None QCameraDevice(self, other: PySide6.QtMultimedia.QCameraDevice) -> None

Base classes

Name Children Inherits
QCameraDevice
PySide6.QtMultimedia
QCameraDevice(self) -> None

⋔ Inheritance diagram

graph TD
  1473573997808["multimedia.CameraDevice"]
  1473573906064["QtMultimedia.QCameraDevice"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473573906064 --> 1473573997808
  1473291690208 --> 1473573906064
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QCameraDevice

Source code in prettyqt\multimedia\cameradevice.py
class CameraDevice(multimedia.QCameraDevice):
    def get_position(self) -> PositionStr:
        return POSITION.inverse[self.position()]

    def get_video_formats(self) -> list[multimedia.CameraFormat]:
        return [multimedia.CameraFormat(i) for i in self.videoFormats()]