I have a file in the root directory which I want to open for editing in my QT application. Generally we use "sudo (editor) filepath" to open the file with roots permissions. But i want to achieve this in my c++ QT application. Any kind of help is appreciable. Thank you.
as I know you can do it in two ways.
so choose what best suits you.
hope that helps a bit.