cherish
|
Class that is derivative of QApplication and runs the application process. More...
#include <CherishApplication.h>
Signals | |
void | setTabletActivity (bool active) |
Public Member Functions | |
CherishApplication (int &argv, char **argc) | |
Protected Member Functions | |
bool | event (QEvent *event) Q_DECL_OVERRIDE |
Class that is derivative of QApplication and runs the application process.
CherishApplication::CherishApplication | ( | int & | argv, |
char ** | argc | ||
) |
Constructor.
|
protected |
A redefined event method which captures Wacom pen's activities (enters or leaves tablet proximity). This method emits setTabletActivity().
event | is the event that enters the application. |
|
signal |
A signal which connects Wacom pen's activity (on and off) with the corresponding slot at GLWidget. This signal is obsolete for Qt version >= 5.6. But it is necessary for earlier versions, for more details, see: http://stackoverflow.com/questions/31172532/mousepressevent-of-qwidget-gets-called-even-though-qtabletevent-was-accepted/33525420#33525420
active | is a boolean variable that denotes whether Wacom pen enters (true) or leaves (false) the tablet proximity. |