You need to use a mechanism to elevate process permissions. Qt has nothing to offer in this regard, look for platform-dependent solutions (e.g. PolicyKit/PolKit)