Skip to content

Missing entries in QtMultimedia #7

Open
@rt121212121

Description

@rt121212121

Firstly, let me say thank you for these stubs. They are a huge help, and I am using them and mypy has suddenly identified long standing bugs in UI-related code, it could not find with the PyQt5 stubs. Here are some minor reports of possible incorrectness, in case they're of use.

Python 3.10.2 (Windows 10 x64).
Mypy 0,950 pip package.
PyQt6 6.3.0 pip package.

I am using the tip of main f623a64 installed.

QtCore.QByteArray:

        device_id: bytes = b'whatever'
        # This is an `__init__`  overload that is present in the stubs and errors when the code runs.
        video_input_id = QByteArray(len(device_id), device_id)
        # This is an `__init__`  overload that is not present in the stubs but is accepted when the code runs.
        video_input_id = QByteArray(device_id) # type: ignore[call-overload]

QtMultimedia.QVideoSink:

        # `videoFrameChanged` is not present in the stubs, and is only referred in a side comment in the official Qt6 documentation. It is present when the code runs.
        self._video_sink.videoFrameChanged.connect( # type: ignore[attr-defined]
            self._on_frame_available)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions