Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquickscreencapture_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
QQUICKSCREENCAPTURE_P_H
5
#
define
QQUICKSCREENCAPTURE_P_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 for the convenience
12
// of other Qt classes. 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
<
QtCore
/
private
/
qglobal_p
.
h
>
19
20
#
include
<
QtMultimedia
/
qscreencapture
.
h
>
21
22
#
include
<
QtMultimediaQuick
/
qtmultimediaquickexports
.
h
>
23
24
#
include
<
QtQml
/
qqml
.
h
>
25
26
#
include
<
QtQuick
/
private
/
qquickscreen_p
.
h
>
27
28
#
include
<
memory
>
29
30
QT_BEGIN_NAMESPACE
31
32
class
Q_MULTIMEDIAQUICK_EXPORT
QQuickScreenCapture
:
public
QScreenCapture
33
{
34
Q_OBJECT
35
Q_PROPERTY(QQuickScreenInfo *screen READ ensureQmlScreen WRITE qmlSetScreen NOTIFY screenChanged)
36
Q_PROPERTY(qreal maximumFrameRate READ qmlMaximumFrameRate WRITE qmlSetMaximumFrameRate RESET
37
qmlResetMaximumFrameRate NOTIFY maximumFrameRateChanged FINAL REVISION(6, 12))
38
QML_NAMED_ELEMENT(ScreenCapture)
39
40
public
:
41
QQuickScreenCapture(QObject *parent =
nullptr
);
42
43
void
qmlSetScreen(QQuickScreenInfo *newQmlScreen);
44
45
QQuickScreenInfo *ensureQmlScreen();
46
47
void
qmlSetMaximumFrameRate(qreal);
48
qreal qmlMaximumFrameRate()
const
;
49
void
qmlResetMaximumFrameRate();
50
51
Q_SIGNALS:
52
void
screenChanged(QQuickScreenInfo *);
53
54
private
:
55
QPointer<QQuickScreenInfo> m_qmlScreen;
56
std::unique_ptr<QQuickScreenInfo> m_ownQmlScreen;
57
};
58
59
QT_END_NAMESPACE
60
61
#
endif
// QQUICKSCREENCAPTURE_P_H
QQuickScreenCapture
Definition
qquickscreencapture_p.h:33
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
screenFrameRateToReal
static QT_BEGIN_NAMESPACE qreal screenFrameRateToReal(std::optional< qreal > frameRate)
Definition
qquickscreencapture.cpp:8
qtmultimedia
src
multimediaquick
qquickscreencapture_p.h
Generated on
for Qt by
1.18.0