I can't include this library to my application. Try to include it as follows:
#include <QEvent>
#include <QKeyEvent>
However it shows me the following error:
user\filtro\customeventfilter.cpp:4: error: C1083: Cannot open file include: 'QKeyEvent': No such file or directory
QKeyEvent
it is in theGUI
Qt library. If you do not incorporate this library to the project you will not be able to use this class.To include the library, simply add the following to the project:
It can also happen that you have something like:
With what in theory it would be enough to eliminate said line.
All the best.