"""
PySide stub files generated by **IceSpringPySideStubs**

Home: https://baijifeilong.github.io/2022/01/06/ice-spring-pyside-stubs/index.html

Github: https://github.com/baijifeilong/IceSpringPySideStubs

PyPI(PySide2): https://pypi.org/project/IceSpringPySideStubs-PySide2

PyPI(PySide6): https://pypi.org/project/IceSpringPySideStubs-PySide6

PyPI(PyQt5): https://pypi.org/project/IceSpringPySideStubs-PyQt5

PyPI(PyQt6): https://pypi.org/project/IceSpringPySideStubs-PyQt6

Generated by BaiJiFeiLong@gmail.com

License: MIT
"""
import typing
from PyQt5 import QtWidgets
from PyQt5 import QtMultimedia
from PyQt5.QtMultimediaWidgets import *


class QCameraViewfinder(QVideoWidget):
    """
    https://doc.qt.io/qt-5/qcameraviewfinder.html

    **Detailed Description**

    camera = new **QCamera** ;

        viewfinder = new **QCameraViewfinder**
    ();
        viewfinder->show();

        camera->setViewfinder(viewfinder);
    imageCapture = new **QCameraImageCapture** (camera);
    camera->setCaptureMode(**QCamera** ::CaptureStillImage);
    camera->start();
    """

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None:
        """
        https://doc.qt.io/qt-5/qcameraviewfinder.html#QCameraViewfinder

        **QCameraViewfinder::QCameraViewfinder(QWidget * parent = nullptr)**

        Constructs a new camera viewfinder widget.

        The **parent** is passed to **QVideoWidget** .
        """
        ...

    def setMediaObject(self, object: QtMultimedia.QMediaObject) -> bool:
        """
        https://doc.qt.io/qt-5/qcameraviewfinder.html#setMediaObject

        **[override virtual protected] bool
        QCameraViewfinder::setMediaObject(QMediaObject * object )**

        Reimplements: **QMediaBindableInterface::setMediaObject** (QMediaObject
        *object).

        **See also** **mediaObject** ().
        """
        ...

    def mediaObject(self) -> QtMultimedia.QMediaObject:
        """
        https://doc.qt.io/qt-5/qcameraviewfinder.html#mediaObject

        **[override virtual] QMediaObject *QCameraViewfinder::mediaObject()
        const**

        Reimplements: **QMediaBindableInterface::mediaObject** () const.

        **See also** **setMediaObject** ().
        """
        ...
