Show a hourglass indicator. More...
#include <bpshourglass.h>
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. | |
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
}
| BpsHourglass::BpsHourglass | ( | QObject * | aParent = 0 | ) |
| [in] | aParent | The parent widget. |
| 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).
| [in] | aObject | The watched object. |
| [in] | aEvent | The event sent to the object. |