使用QT Creator如何将执行级别设置为requireAdministrator [英] Using QT Creator how can I set the execution level as requireAdministrator

查看:736
本文介绍了使用QT Creator如何将执行级别设置为requireAdministrator的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上我需要能够编辑需要管理员权限编辑的文件。我知道在Visual Studio中使用了一个清单文件 - 但我知道QT没有这些。

使用Qt应用程序的清单,但你必须手动进行半手动。这篇博客文章使用QtCreator嵌入应用程序清单和版本信息显示了一种做法它(适应清单,以满足您的需求)。

Basically I need to be able to edit files that require administrator privileges to edit. I know that in Visual Studio a manifest file is used for this - but I understand QT does not have these.

解决方案

You can use a manifest with Qt applications, but you'll have to do it semi-manually. This blog post Embedding Application Manifest and Version Information using QtCreator shows one way of doing it (adapt the manifest to suit your needs).

这篇关于使用QT Creator如何将执行级别设置为requireAdministrator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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