I am developing a software in Qt in which I created a terminal. I run different commands through QProcess
in that but when I run root commands it ask for password in terminal. I tried to run via sudo
but it only accepts password in terminal. Is there any way to give password from another source like pop up widget or a text file?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…