I\'ve created a little class to set some global shortcuts. But now, when i compile my app i see many errors:
In file included from ../src/GlobalShortcut/globalsh
Vinicius is close to having the full answer.
This is for Qt 5.1 or newer. The issue is that access to X11 and GDI handles were removed and then put back again in a slightly different place.
Add x11extras to the .pro file:
QT += gui x11extras
If the moc generated code fails to compile add the following to the bottom of the the file it includes (X11 headers define Bool):
#undef Bool
Add the following to the file that needs access to QX11Info:
#include