Qt vs XCB: How powerful is Qt to do low level tasks?

别等时光非礼了梦想. 提交于 2019-12-13 20:07:34

问题


I'm trying to create a program to lock the screen of a computer with Linux OS which is to be unlocked using my own authentication mechanism. Can I do it in Qt alone( The lock screen, the ability to switch to the lock screen ...) or do I need to learn XCB or something related?


回答1:


Window or session management like locking the screen isn't covered by Qt. You'll need to use native API.

Usually locking the screen isn't something random applications do, but something the desktop environment offers to the user. Thus covering such tasks in a UI toolkit doesn't make much sense. (Same goes for administration-related tasks, like configuring network interfaces).



来源:https://stackoverflow.com/questions/13663582/qt-vs-xcb-how-powerful-is-qt-to-do-low-level-tasks

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!