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