SGL
Static Public Member Functions | List of all members
GClipboard Class Reference

The GClipboard class contains static methods you can use to get and set the contents of the system clipboard. More...

#include "gclipboard.h"

Static Public Member Functions

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...
 

Detailed Description

The GClipboard class contains static methods you can use to get and set the contents of the system clipboard.

Member Function Documentation

◆ get()

string get ( )
static

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
ErrorExceptionif the event is null

◆ isCut()

bool isCut ( QKeyEvent *  event)
static

Returns true if the given event represents a "cut" operation.

Exceptions
ErrorExceptionif the event is null

◆ isPaste()

bool isPaste ( QKeyEvent *  event)
static

Returns true if the given event represents a "paste" operation.

Exceptions
ErrorExceptionif the event is null

◆ set()

void set ( string   text)
static

Sets the system clipboard to store the given text.

Equivalent to a "copy" operation.