Compiler does not see QX11Info

前端 未结 2 590
孤独总比滥情好
孤独总比滥情好 2021-01-22 00:21

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         


        
2条回答
  •  春和景丽
    2021-01-22 00:42

    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.

提交回复
热议问题