Qt:无法执行'':请求的操作需要提升 [英] Qt: Cannot execute '': The requested operation requires elevation

查看:402
本文介绍了Qt:无法执行'':请求的操作需要提升的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法运行 Qt 创建者的应用程序.它抱怨以下错误:

I am not able to run the application the Qt creator. It complains the following error:

无法执行'':请求的操作需要提升

Cannot execute '': The requested operation requires elevation

我的 .exe 文件上有一个 Windows 管理员盾牌符号.我需要更改项目设置吗?我广泛使用 Qt 文件库进行一些文件操作.

My .exe file has a Windows administrator shield symbol on it. Do I need to make a project settings changes? I am extensively using Qt File library for doing some file operations.

推荐答案

你的可执行文件的文件名是什么?如果没有嵌入式清单,Windows 会尝试变得聪明,并希望以管理员身份运行文件名中带有安装"、更新"、设置"、补丁"等的可执行文件.它甚至会检查诸如自动更新"之类的词中的那些名称.

What's your executable's file name? Without an embedded manifest, windows tries to be smart and wants to run executables with "install", "update", "setup", "patch", etc. in the file name as administrator. It even checks for those names within words such as "autoupdate".

问题是 qmake/mingw 没有嵌入这些清单,而 MSVC 有.如果有人对这个问题有一个干净的解决方案,我很想了解它.

The problem is that qmake/mingw doesn't embed those manifests, while MSVC does. If someone has a clean solution to that problem, I'd be interested to learn about it.

这篇关于Qt:无法执行'':请求的操作需要提升的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆