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 <QtX11Extras/qx11info_x11.h>
I have not checked, but I believe you only missed adding the following to your .pro
file, as stated at the docs
QT += gui x11extras
It's likely that that you may be missing a header file, but without the error message, I find it a bit hard to figure it out since I've never touched X11 stuff directly.
Hope it helps.