Just wanna know if I can ask users for root password/user password of the computer in a QDialog GUI?

Thanks

--