I have a QT Gui Program run on Linux at KDE environment. My program must be run as root or sudo permission to check hardware information (such as read /dev/sda) or turn power off, etc. And, some tasks in my program cannot be done with root account due to security problem.
So I want my program run as user account with sudo permission set on that account, each time the program require permission, it show a dialogBox to enter the password and continue.
How may I do this on QT? How to write a callback handler with QT?
Bookmarks