Qt vs XCB: How powerful is Qt to do low level task

2019-09-06 17:43发布

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?

标签: qt qt4 gtk xcb
1条回答
别忘想泡老子
2楼-- · 2019-09-06 18:07

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).

查看更多
登录 后发表回答