A better plan would be to use polkit-qt, which is a Qt wrapper around polkit.
If your using KDE or Gnome, then these frameworks use polkit already; something like KAuth should work well.
A better plan would be to use polkit-qt, which is a Qt wrapper around polkit.
If your using KDE or Gnome, then these frameworks use polkit already; something like KAuth should work well.
An other solution is to use a kdesudo (in KDE) or gksudo (in Gnome) command instead of a sudo command within the QProcess statement. A new window will be opened and ask to the root password.
Bookmarks