当前位置:网站首页>The EXE compiled by QT is started with administrator privileges
The EXE compiled by QT is started with administrator privileges
2022-07-27 03:06:00 【Boring ah le】
1、 compile QT We have problems :

2、 resolvent
MinGW Add permission below
This method needs to create .manifest file , Such as app.exe.manifest, The contents of the document are as follows :
<?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>
Then create another .rc file , Such as app.rc, These two files need to be placed in Pro File in the same level directory ,rc The contents of the document are as follows :
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "app.exe.manifest"
Last in Pro The following code is attached to the file :
RC_FILE = app.rc
It can be solved by recompiling and running
边栏推荐
- Web3.0 world knowledge system sharing - what is Web3.0
- Blog competition dare to try BAC for beginners
- Is the low commission account opening of Galaxy Securities Fund reliable, reliable and safe
- Thread.Sleep(0)的作用
- 软件测试面试常见问题及答案(发散思维、接口、性能、概念、)
- C language program compilation
- MySQL 5.7 takes the first item of the group
- iNFTnews | GGAC联合中国航天ASES 独家出品《中国2065典藏版》
- CAS部署使用以及登录成功跳转地址
- 论构造函数的原型是谁
猜你喜欢

小玩一个并行多线程MCU—MC3172

OD-Paper【3】:Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks

Plato Farm通过LaaS协议Elephant Swap,为社区用户带来全新体验

Time module: acquisition and mutual transformation of timestamp, structured time and formatted time

系统安全测试要怎么做,详细来说说

Make ppt timeline

如何使用DevExpress WPF在WinUI中创建第一个MVVM应用程序?

五、MFC视图窗口和文档

CuteOne:一款OneDrive多网盘挂载程序/带会员/同步等功能

LabVIEW中编程更改进程的优先级
随机推荐
Cs224w fall course - --- 1.1 why graphs?
[动态规划简单题] LeetCode 53. 最大子数组和
如何白嫖最新版BurpSuite Pro
五、MFC视图窗口和文档
[redis] quick start
[redis] five common data types
CuteOne:一款OneDrive多网盘挂载程序/带会员/同步等功能
调用JShaman的Web API接口,实现JS代码加密。
{“errcode“:44001,“errmsg“:“empty media data, hint: [1655962096234893527769663], from ip: 222.72.xxx.
次轮Okaleido Tiger即将登录Binance NFT,引发社区热议
OD-Paper【3】:Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks
Database knowledge required by testers: MySQL common syntax
Play a parallel multithreaded mcu-mc3172
OD-Paper【3】:Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks
论构造函数的原型是谁
毕业2年转行软件测试获得12K+,不考研月薪过万的梦想实现了
[dynamic planning medium] leetcode 198. looting 740. delete and get points
Goatgui invites you to attend a machine learning seminar
Information collection port scanning tool nmap instructions
一道数学题,让芯片巨头亏了5亿美金!