Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
surfacecapturetestutils.cpp
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
5
6#include <QtMultimedia/qscreencapture.h>
7#include <QtMultimedia/qwindowcapture.h>
8#include <QtMultimedia/private/qscreencapture_p.h>
9#include <QtMultimedia/private/qwindowcapture_p.h>
10
12
14{
15 auto capture = std::make_unique<QScreenCapture>();
16 auto *capturePrivate = QScreenCapturePrivate::get(*capture);
17 capturePrivate->setIgnoreCursor(true);
18 return capture;
19}
20
22{
23 auto capture = std::make_unique<QWindowCapture>();
24 auto *capturePrivate = QWindowCapturePrivate::get(*capture);
25 capturePrivate->setIgnoreCursor(true);
26 return capture;
27}
28
29QT_END_NAMESPACE
Combined button and popup list for selecting options.
std::unique_ptr< QScreenCapture > makeScreenCapture()
std::unique_ptr< QWindowCapture > makeWindowCapture()