qpcpp/doxygen/snippets/qep_qevt.cpp
2022-10-26 19:47:39 -04:00

13 lines
305 B
C++

// example of event signals
enum MySignals {
TIMEOUT_SIG = QP::Q_USER_SIG, // <===
BUTTON_PRESSED,
BUTTON_RELEASED,
. . .
};
// example of an event with paramters
struct QCalcEvt : public QP::QEvt { // inherits QP::QEvt
std::uint8_t keyId; // ID of the key depressed
};