class KCursor

A QCursor wrapper allowing "themed" cursors and auto-hiding cursors. More...

Definition#include <kcursor.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods


Detailed Description

A wrapper around QCursor that allows for "themed" cursors.

Currently, the only themed cursor is a hand shaped cursor.

A typical usage would be


 	setCursor(KCursor::handCursor());

 KCursor ()

Constructor.

Does not do anything so far.

QCursor  handCursor ()

[static]

Retrieve the proper hand cursor according to the current GUI style (static function).

QCursor  arrowCursor ()

[static]

Retrieve the proper arrow cursor according to the current GUI style (static function).

QCursor  upArrowCursor ()

[static]

Retrieve the proper up arrow cursor according to the current GUI style (static function).

QCursor  crossCursor ()

[static]

Retrieve the proper cross-hair cursor according to the current GUI style (static function).

QCursor  waitCursor ()

[static]

Retrieve the proper hourglass cursor according to the current GUI style (static function).

QCursor  ibeamCursor ()

[static]

Retrieve the proper text cursor according to the current GUI style (static function).

QCursor  sizeVerCursor ()

[static]

Retrieve the proper vertical resize cursor according to the current GUI style (static function).

QCursor  sizeHorCursor ()

[static]

Retrieve the proper horizontal resize cursor according to the current GUI style (static function).

QCursor  sizeBDiagCursor ()

[static]

Retrieve the proper diagonal resize (/) cursor according to the current GUI style (static function).

QCursor  sizeFDiagCursor ()

[static]

Retrieve the proper diagonal resize (\) cursor according to the current GUI style (static function).

QCursor  sizeAllCursor ()

[static]

Retrieve the proper all-directions resize cursor according to the current GUI style (static function).

QCursor  blankCursor ()

[static]

Retrieve a blank or invisible cursor (static function).

void  setAutoHideCursor ( QWidget *w, bool enable )

[static]

Sets auto-hiding the cursor for widget w. Enabling it will result in the cursor being hidden when

The cursor will be shown again when the focus is lost or a mouse-event happens.

Side effect: when enabling auto-hide, mouseTracking is enabled for the specified widget, because it's needed to get mouse-move-events. So don't disable mouseTracking for a widget while using auto-hide for it.

When disabling auto-hide, mouseTracking will be disabled, so if you need mouseTracking after disabling auto-hide, you have to reenable mouseTracking.

void  setHideCursorDelay ( int ms )

[static]

Sets the delay time in milliseconds for auto-hiding. When no keyboard events arrive for that time-frame, the cursor will be hidden.

Default is 5000, i.e. 5 seconds.

int  hideCursorDelay ()

[static]

Default is 5000, i.e. 5 seconds.

Returns: the current auto-hide delay time.