Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwindowscamera_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWINDOWSCAMERA_H
5#define QWINDOWSCAMERA_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qplatformcamera_p.h>
19#include <private/qcomptr_p.h>
20
22
23class ActiveCamera;
24
26{
28
29public:
30 explicit QWindowsCamera(QCamera *parent);
31 ~QWindowsCamera() override;
32
33 bool isActive() const override { return bool(m_active); }
34 void setActive(bool active) override;
35 void setCamera(const QCameraDevice &camera) override;
36 bool setCameraFormat(const QCameraFormat &/*format*/) override;
37
38private:
39 QCameraDevice m_cameraDevice;
40 std::unique_ptr<ActiveCamera> m_active;
41};
42
44
45#endif //QWINDOWSCAMERA_H
The QCameraDevice class provides general information about camera devices.
The QCameraFormat class describes a video format supported by a camera device. \inmodule QtMultimedia...
The QCamera class provides interface for system camera devices.
Definition qcamera.h:28
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
bool setCameraFormat(const QCameraFormat &) override
bool isActive() const override
void setCamera(const QCameraDevice &camera) override
void setActive(bool active) override
QWindowsCamera(QCamera *parent)
~QWindowsCamera() override
QCamera * camera
Definition camera.cpp:19
Combined button and popup list for selecting options.
#define Q_OBJECT