当前位置:网站首页>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
边栏推荐
- Why do people like to rank things
- C language: deep learning recursion
- Okaleido tiger is about to log in to binance NFT in the second round, which has aroused heated discussion in the community
- 使用 WebSocket 实现一个网页版的聊天室(摸鱼更隐蔽)
- 毕业2年转行软件测试获得12K+,不考研月薪过万的梦想实现了
- ArduinoUNO驱动RGB模块全彩效果示例
- Which securities firm is safer to open an account and buy REITs funds?
- {“errcode“:44001,“errmsg“:“empty media data, hint: [1655962096234893527769663], from ip: 222.72.xxx.
- CS224W fall 1.2 Applications of Graph ML
- LabVIEW中编程更改进程的优先级
猜你喜欢

Kubernetes Dashboard 部署应用以及访问

Okaleido tiger is about to log in to binance NFT in the second round, which has aroused heated discussion in the community

LabVIEW中编程更改进程的优先级

QT编译出来的exe以管理员权限启动

毕业2年转行软件测试获得12K+,不考研月薪过万的梦想实现了

Favicon网页收藏图标在线制作PHP网站源码/ICO图片在线生成/支持多种图片格式转换

iNFTnews | GGAC联合中国航天ASES 独家出品《中国2065典藏版》

What did kubedmin do?

static关键字

Database read-write separation and database and table segmentation
随机推荐
论构造函数的原型是谁
C language program compilation (preprocessing)
B-树的应用以及添加和删除操作
基于GoLang实现API短信网关
CAS部署使用以及登录成功跳转地址
Make ppt timeline
2513: 小勇学分数(公约数问题)
如何使用DevExpress WPF在WinUI中创建第一个MVVM应用程序?
Okaleido tiger is about to log in to binance NFT in the second round, which has aroused heated discussion in the community
人们为什么热衷于给事物排序
Inftnews | "traffic + experience" white lining e Digital Fashion Festival leads the new changes of digital fashion
[二分查找简单题] LeetCode 35. 搜索插入位置,69. x 的平方根,367. 有效的完全平方数,441. 排列硬币
制作ppt时间轴
Thread.Sleep(0)的作用
Ansible series: do not collect host information gather_ facts: False
"Software testing" packaging resume directly improves the pass rate from these points
Information collection port scanning tool nmap instructions
Web3.0 world knowledge system sharing - what is Web3.0
5、 MFC view windows and documents
CuteOne:一款OneDrive多网盘挂载程序/带会员/同步等功能