The GClipboard class contains static methods you can use to get and set the contents of the system clipboard.
More...
#include "gclipboard.h"
|
static string | get() |
| Returns the current contents of the system clipboard. More...
|
|
static bool | isCopy(QKeyEvent *event) |
| Returns true if the given event represents a "copy" operation. More...
|
|
static bool | isCut(QKeyEvent *event) |
| Returns true if the given event represents a "cut" operation. More...
|
|
static bool | isPaste(QKeyEvent *event) |
| Returns true if the given event represents a "paste" operation. More...
|
|
static void | set(string text) |
| Sets the system clipboard to store the given text. More...
|
|
The GClipboard class contains static methods you can use to get and set the contents of the system clipboard.
◆ get()
Returns the current contents of the system clipboard.
◆ isCopy()
bool isCopy |
( |
QKeyEvent * |
event | ) |
|
|
static |
Returns true if the given event represents a "copy" operation.
- Exceptions
-
ErrorException | if the event is null |
◆ isCut()
bool isCut |
( |
QKeyEvent * |
event | ) |
|
|
static |
Returns true if the given event represents a "cut" operation.
- Exceptions
-
ErrorException | if the event is null |
◆ isPaste()
bool isPaste |
( |
QKeyEvent * |
event | ) |
|
|
static |
Returns true if the given event represents a "paste" operation.
- Exceptions
-
ErrorException | if the event is null |
◆ set()
Sets the system clipboard to store the given text.
Equivalent to a "copy" operation.