How to get root permission inside qt program?
I run my QT app without sudo permission but during running phase of the app I need to install the .deb so I am running the command dpkg -i mydeb.deb with qprocess in QT or some other commands which needed to sudo permisssion.
I do not need the user interaction to enter the password for the same. So how can I do the same in QT app in ubuntu 14.04 ? Thanks
There is no built-in mechanism in Qt that would help you here. You need to do it yourself, differently for every platform.
In ubuntu, you can run sudo, gksudo if on Gnome, or kdesudo on KDE. More info "here":https://help.ubuntu.com/community/RootSudo.