Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
1.4.4
-
None
-
* Windows 10
* QtCreator 3.6.1 (with default QBS version)
* Official Qt 5.5.1 MSVC2013 32 bit
* Official Qt 5.5.1 MINGW 32 bit
Description
I want to use UAC feature to allow to start an application with the administrative privileges.
I have created a *.rc file which contains:
#ifndef RT_MANIFEST
#define RT_MANIFEST 24
#endif
#ifndef CREATEPROCESS_MANIFEST_RESOURCE_ID
#define CREATEPROCESS_MANIFEST_RESOURCE_ID 1
#endif
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "app-uac.exe.manifest"
where "app-uac.exe.manifest" file contains:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> </requestedPrivileges> </security> </trustInfo> </assembly>
and *.qbs file contains:
import qbs Application { name: "app-uac" Depends { name: "Qt"; submodules: [ "core" ] } files : ["main.cpp"] Group { name: "Windows resource file" files: ["app-uac.rc"] } }
This UAC feature works only with the MinGW kit, but ignores with the MSVC kit.
Note: Similar issue works perfectly using QMake.
Please see a source project from the attachment which reproduces this issue.