Just wanna know if I can ask users for root password/user password of the computer in a QDialog GUI?
Thanks
--
Just wanna know if I can ask users for root password/user password of the computer in a QDialog GUI?
Thanks
--
Yes, sure you can. You can ask the user for anything you like.
Wow I'm suprised, I didn't think you could. Is it an in-built function in QDialog or is there some path or something I have to specify?
facepalm.
.............
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
d_stranz (27th April 2013)
You can ask the user to provide anything you want. This has precisely nothing to do with what your code does with the provided information.Just wanna know if I can ask users for root password/user password of the computer in a QDialog GUI?
There is no auto-magic, obtain root login credentials, change the process effective uid to zero, and do stuff dialog. You have to code everything you want done with the user's input.
No, you don't need superuser privileges to determine users' home paths.
Bookmarks