Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qandroidimagecapture.cpp
Go to the documentation of this file.
1// Copyright (C) 2023 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
5#include <qandroidcamera_p.h>
6
8
11{
12}
13
15{
16}
17
19{
21 if (ret >= 0) {
22 auto androidCamera = qobject_cast<QAndroidCamera *>(videoSource());
23 if (androidCamera)
24 androidCamera->capture();
25 }
26
27 return ret;
28}
29
31{
32 auto androidCamera = qobject_cast<QAndroidCamera *>(videoSource());
33 if (androidCamera)
35 else
37}
void onCaptured(const QVideoFrame &)
QAndroidImageCapture(QImageCapture *parent=nullptr)
void setupVideoSourceConnections() override
int doCapture(const QString &fileName) override
void newVideoFrame(const QVideoFrame &frame)
virtual int doCapture(const QString &fileName)
QPlatformVideoSource * videoSource() const
virtual void setupVideoSourceConnections()
\inmodule QtMultimedia
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
Definition qobject.cpp:2823
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
return ret
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent