当前位置:网站首页>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 .
边栏推荐
- Pointer parameter passing vs reference parameter passing vs value parameter passing
- Parker driver maintenance COMPAX controller maintenance cpx0200h
- selenium 获取dom内属性值的方法
- Parker驱动器维修COMPAX控制器维修CPX0200H
- What are the requirements of UL 2043 test for drive housing in the United States?
- oracle 控制文件的多路复用
- XML modeling
- Opérations de lecture et d'écriture pour easyexcel
- 2.2.5 basic sentences of R language drawing
- postgres 建立连接并删除记录
猜你喜欢

Feng Tang's "spring breeze is not as good as you" digital collection, logged into xirang on July 8!

1.2 download and installation of the help software rstudio

总结出现2xx、3xx、4xx、5xx状态码的原因
![[case] Application of element display and hiding -- element mask](/img/6e/6ea484a6e5d547e01dd8820af8e314.png)
[case] Application of element display and hiding -- element mask

R语言【数据管理】

Scenario interview: ten questions and ten answers about distributed locks

MMAP

怎么利用Tensorflow2进行猫狗分类识别

R language learning notes

Reading and writing operations of easyexcel
随机推荐
冯唐“春风十里不如你”数字藏品,7月8日登录希壤!
Detailed explanation of memset() function usage
MMAP学习
regular expression
How to prepare for the algorithm interview and answer the algorithm interview questions
Zhang Lijun: penetrating uncertainty depends on four "invariants"
使用Aspect制作全局异常处理类
Teach yourself to train pytorch model to Caffe (I)
Arcgis\qgis no plug-in loading (no offset) mapbox HD image map
阿里云有奖体验:用PolarDB-X搭建一个高可用系统
kingbaseES V8R3数据安全案例之---审计记录清除案例
What are the requirements of UL 2043 test for drive housing in the United States?
Five layer network protocol
办公遇到的问题--
Three components of openpyxl
Cross end solution to improve development efficiency rapidly
Deep merge object deep copy of vant source code parsing
ESP32
XML modeling
DBeaver同时执行多条insert into报错处理