肉桂和 QxtGlobalShortcut
Cinnamon and QxtGlobalShortcut
我有一个 Qt5 应用程序,我在其中定义了一个 QxtGlobalShortcut
对象。该程序在 KDE4 或 Plasma5 中按预期工作。但是,当我在 Cinnamon 中 运行 这个应用程序时,全局键绑定不起作用。
另一个用 Qt4 编写的包含 QxtGlobalShortcut
对象的应用程序在 KDE/Plasma 和 Cinnamon 中都能正常工作。
关于问题可能是什么有什么想法吗?
我正在使用 debian 测试。
Qt4版本:4.8.7
Qt5 版本:5.6.1
QxtGlobalShortcut
class 是从源代码编译的。 Qt4 和 Qt5 中使用相同的源代码。
我遇到了同样的问题。如果应用程序没有 windows,有时不会捕获全局快捷方式事件。解决方法是创建 invisible dummy window.
自 Qxt in no longer maintained, I've created repository with some additional fixes 以来(欢迎提出请求)。这可以构建为单独的库。
我有一个 Qt5 应用程序,我在其中定义了一个 QxtGlobalShortcut
对象。该程序在 KDE4 或 Plasma5 中按预期工作。但是,当我在 Cinnamon 中 运行 这个应用程序时,全局键绑定不起作用。
另一个用 Qt4 编写的包含 QxtGlobalShortcut
对象的应用程序在 KDE/Plasma 和 Cinnamon 中都能正常工作。
关于问题可能是什么有什么想法吗?
我正在使用 debian 测试。 Qt4版本:4.8.7 Qt5 版本:5.6.1
QxtGlobalShortcut
class 是从源代码编译的。 Qt4 和 Qt5 中使用相同的源代码。
我遇到了同样的问题。如果应用程序没有 windows,有时不会捕获全局快捷方式事件。解决方法是创建 invisible dummy window.
自 Qxt in no longer maintained, I've created repository with some additional fixes 以来(欢迎提出请求)。这可以构建为单独的库。