Thanks Chris,
For some strange reason, it did not work for me.
I am using Qt library 4.8.3. Does it make any difference ? I am using Visual Studio 2008.
Let me tell you what I did.
I added the following lines in my ".pro" file (at the end of the file) and build it with "qmake -tp cp abc.pro"
******
win32-msvc* {
CONFIG += embed_manifest_exe
QMAKE_LFLAGS_WINDOWS += $$quote( /MANIFESTUAC:\"level=\'requireAdministrator\' uiAccess=\'false\'\" )
}
******
When it did not work, I tried using the manifest file. I created one manifest file, added it in ".rc" file (as mentioned as another solution in the same post)and added the RC file entry in ".proj" file. The content of the manifest files was as follows -
****
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="abc" type="win32" />
<description>Test Application</description>
<dependency />
<!-- Identify the application security requirements. -->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
******
Am I missing something ? Is the Qt version 4.8.3 having some problem ?
Bookmarks