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
qohospasteboard.cpp
Go to the documentation of this file.
1// Copyright (C) 2026 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
6#include <QtGui/qguiapplication.h>
7
9
10namespace QtHarmonyExtras {
11
12/*!
13 \namespace QtHarmonyExtras::Pasteboard
14 \inmodule QtHarmonyExtras
15 \since 5.12.12
16 \brief The Pasteboard class is to manage native pasteboard.
17*/
18namespace Pasteboard {
19
20/*!
21 \fn void QtHarmonyExtras::Pasteboard::setInAppOnlyPasteboardShareOption(bool shareInAppOnly)
22
23 According to \a shareInAppOnly sets if pasteboard data content can be used only in the same
24 application or across applications of a device.
25*/
26void setInAppOnlyPasteboardShareOption(bool shareInAppOnly)
27{
28 constexpr const char *platformFunctionName = "setInAppOnlyPasteboardShareOption";
29
30 auto *fn = reinterpret_cast<void(*)(bool)>(qApp->platformFunction(platformFunctionName));
31 if (fn == nullptr)
32 qFatal("failed to load function: %s", platformFunctionName);
33 (*fn)(shareInAppOnly);
34}
35
36}
37
38}
39
40QT_END_NAMESPACE
Combined button and popup list for selecting options.
void setInAppOnlyPasteboardShareOption(bool shareInAppOnly)
According to shareInAppOnly sets if pasteboard data content can be used only in the same application ...