4#ifndef PLATFORMQUIRKS_P_H
5#define PLATFORMQUIRKS_P_H
18#include <private/qglobal_p.h>
21#include <Carbon/Carbon.h>
30#if !QT_CONFIG(clipboard)
32#elif defined(Q_OS_MACOS)
33 PasteboardRef pasteboard;
34 OSStatus status = PasteboardCreate(0, &pasteboard);
36 CFRelease(pasteboard);
37 return status == noErr;
49 const QString newText = prefix + oldText;
The QClipboard class provides access to the window system clipboard.
void setText(const QString &, Mode mode=Clipboard)
Copies text into the clipboard as plain text.
QString text(Mode mode=Clipboard) const
Returns the clipboard text as plain text, or an empty string if the clipboard does not contain any te...
static QClipboard * clipboard()
Returns the object for interacting with the clipboard.
QString platformName
The name of the underlying platform plugin.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
static bool qWaitFor(Functor predicate, QDeadlineTimer deadline=QDeadlineTimer(std::chrono::seconds{5}))