当前位置:网站首页>QML reported an error expected token ";", expected a qualified name ID
QML reported an error expected token ";", expected a qualified name ID
2022-07-05 21:36:00 【MrL_ JJ】
scene :
compile QML There is an error as shown in the figure :Expected token “;”,Expected a qualified name id.
Solution :
The above error is caused by the file encoding problem , The solution is as follows :
1. Set up qt The encoding format of is changed to UTF-8:
In the project main Add... At the beginning of the function QTextCodec::setCodecForLocale(QTextCodec::codecForUtfText(“utf-8”));
2. Modify the error source file to UTF-8:
Recommend an open source codec ,https://github.com/clorymmk/CodeTransmit. Support batch conversion of file codes in any format ; The document code can be converted to UTF-8 BOM 、UTF-8、GB2312 Any format in ;exe Under the folder is packed, which can be directly in windows Run under .
边栏推荐
- Uni app Bluetooth communication
- PostGIS installation geographic information extension
- 2.2.5 basic sentences of R language drawing
- ESP32
- 張麗俊:穿透不確定性要靠四個“不變”
- Opérations de lecture et d'écriture pour easyexcel
- 冯唐“春风十里不如你”数字藏品,7月8日登录希壤!
- 【日常训练--腾讯精选50】89. 格雷编码(看题解才会的)
- [daily training] 729 My schedule I
- 校招期间 准备面试算法岗位 该怎么做?
猜你喜欢
Add ICO icon to clion MinGW compiled EXE file
Realize the function of verifying whether the user has completed login when browsing the page
張麗俊:穿透不確定性要靠四個“不變”
Why can't Chinese software companies produce products? Abandon the Internet after 00; Open source high-performance API gateway component of station B | weekly email exclusive to VIP members of Menon w
Some common processing problems of structural equation model Amos software
Using webassembly to operate excel on the browser side
KingbaseES V8R3集群维护案例之---在线添加备库管理节点
Uni app Bluetooth communication
Teach yourself to train pytorch model to Caffe (2)
Pytoch practice -- MNIST dataset handwritten digit recognition
随机推荐
How to send samples when applying for BS 476-7 display? Is it the same as the display??
有些事情让感情无处安放
Influence of oscilloscope probe on signal source impedance
R language [data management]
Zhang Lijun: penetrating uncertainty depends on four "invariants"
@Validated basic parameter verification, grouping parameter verification and nested parameter verification
Golang (1) | from environmental preparation to quick start
总结出现2xx、3xx、4xx、5xx状态码的原因
思特奇加入openGauss开源社区,共同推动数据库产业生态发展
Comprehensive optimization of event R & D workflow | Erda version 2.2 comes as "7"
sql常用语法记录
Learning robots have no way to start? Let me show you the current hot research directions of robots
Modifiers of attributes of TS public, private, protect
Opérations de lecture et d'écriture pour easyexcel
力扣------经营摩天轮的最大利润
Teach yourself to train pytorch model to Caffe (I)
基于 Ingress Controller 在集群外访问 Zadig 自测环境(最佳实践)
Access Zadig self-test environment outside the cluster based on ingress controller (best practice)
vant 源码解析之 utils/index.ts 工具函数
MMAP