7#include "private/qobject_p.h"
8#include "private/qplatformsurfacecapture_p.h"
76 qRegisterMetaType<QCapturableWindow>();
80 if (platformCapture) {
93 d->platformWindowCapture.reset(platformCapture);
104 d->platformWindowCapture.reset();
106 if (
d->captureSession)
107 d->captureSession->setWindowCapture(
nullptr);
129 return d->captureSession;
157 if (
d->platformWindowCapture)
158 d->platformWindowCapture->setSource(
window);
176 return d->platformWindowCapture &&
d->platformWindowCapture->isActive();
183 if (
d->platformWindowCapture)
184 d->platformWindowCapture->setActive(
active);
247 return d->platformWindowCapture
248 ?
d->platformWindowCapture->errorString()
263 return d->platformWindowCapture.get();
268#include "moc_qwindowcapture.cpp"
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
\macro QT_RESTRICTED_CAST_FROM_ASCII
QMediaCaptureSession * captureSession
std::unique_ptr< QPlatformSurfaceCapture > platformWindowCapture
static Q_INVOKABLE QList< QCapturableWindow > capturableWindows()
\qmlmethod list<CapturableWindow> QtMultimedia::WindowCapture::capturableWindows()
QCapturableWindow window
\qmlproperty Window QtMultimedia::WindowCapture::window Describes the window for capturing.
bool active
\qmlproperty bool QtMultimedia::WindowCapture::active Describes whether the capturing is currently ac...
QString errorString
\qmlproperty string QtMultimedia::WindowCapture::errorString Returns a human readable string describi...
void setWindow(QCapturableWindow window)
void windowChanged(QCapturableWindow window)
~QWindowCapture() override
Destroys the object.
QMediaCaptureSession * captureSession() const
Error error
\qmlproperty string QtMultimedia::WindowCapture::error Returns a code of the last error.
void errorOccurred(QWindowCapture::Error error, const QString &errorString)
Signals when an error occurs, along with the errorString.
QWindowCapture(QObject *parent=nullptr)
Constructs a new QWindowCapture object with parent.
void setActive(bool active)
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
static QT_BEGIN_NAMESPACE QWindowCapture::Error toWindowCaptureError(QPlatformSurfaceCapture::Error error)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent