Documents > BPS V2 C++ API
BpsHourglass Class Reference

Show a hourglass indicator. More...

#include <bpshourglass.h>

List of all members.

Public Member Functions

 BpsHourglass (QObject *aParent=0)

Protected Member Functions

virtual bool eventFilter (QObject *aObject, QEvent *aEvent)
 This event filter is automatically applied to qApp.

Detailed Description

Show a hourglass indicator.

The wait mouse cursor is displayed on construction, and all user input events get discarded for the whole application while the the object exists. On destruction, the normal mouse cursor is restored.

 {
     BpsHourglass busy;
     // do some long running operation, discarding user imput
 }

Constructor & Destructor Documentation

BpsHourglass::BpsHourglass ( QObject *  aParent = 0)
Parameters:
[in]aParentThe parent widget.

Member Function Documentation

virtual bool BpsHourglass::eventFilter ( QObject *  aObject,
QEvent *  aEvent 
) [protected, virtual]

This event filter is automatically applied to qApp.

It eats all user input events (keyboard, mouse).

Parameters:
[in]aObjectThe watched object.
[in]aEventThe event sent to the object.
Returns:
True for user inputs, result of default eventFilter for other events.

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