QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
Public Member Functions | List of all members
QgsTemporaryCursorOverride Class Reference

Temporarily sets a cursor override for the QApplication for the lifetime of the object. More...

#include <qgsguiutils.h>

Public Member Functions

 QgsTemporaryCursorOverride (const QCursor &cursor)
 Constructor for QgsTemporaryCursorOverride. More...
 
 ~QgsTemporaryCursorOverride ()
 
void release ()
 Releases the cursor override early (i.e. More...
 

Detailed Description

Temporarily sets a cursor override for the QApplication for the lifetime of the object.

When the object is deleted, the cursor override is removed.

See also
QgsTemporaryCursorRestoreOverride
Since
QGIS 3.2

Definition at line 221 of file qgsguiutils.h.

Constructor & Destructor Documentation

◆ QgsTemporaryCursorOverride()

QgsTemporaryCursorOverride::QgsTemporaryCursorOverride ( const QCursor &  cursor)

Constructor for QgsTemporaryCursorOverride.

Sets the application override cursor to cursor.

Definition at line 324 of file qgsguiutils.cpp.

◆ ~QgsTemporaryCursorOverride()

QgsTemporaryCursorOverride::~QgsTemporaryCursorOverride ( )

Definition at line 329 of file qgsguiutils.cpp.

Member Function Documentation

◆ release()

void QgsTemporaryCursorOverride::release ( )

Releases the cursor override early (i.e.

before this object is destroyed).

Definition at line 335 of file qgsguiutils.cpp.


The documentation for this class was generated from the following files: