当前位置:网站首页>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 .
边栏推荐
- Sequence alignment
- Deployment of Jenkins under win7
- 【日常训练--腾讯精选50】89. 格雷编码(看题解才会的)
- Two ways to realize video recording based on avfoundation
- 怎么利用Tensorflow2进行猫狗分类识别
- Feng Tang's "spring breeze is not as good as you" digital collection, logged into xirang on July 8!
- MMAP学习
- 100 cases of shell programming
- Xlrd common operations
- Reading and writing operations of easyexcel
猜你喜欢

Golang (1) | from environmental preparation to quick start

What should I do to prepare for the interview algorithm position during school recruitment?

力扣------经营摩天轮的最大利润

Wood board ISO 5660-1 heat release rate mapping test

Comprehensive optimization of event R & D workflow | Erda version 2.2 comes as "7"

MySQL InnoDB Architecture Principle

Teach yourself to train pytorch model to Caffe (III)

EasyExcel的讀寫操作

Making global exception handling classes with aspect

MMAP
随机推荐
Evolution of zhenai microservice underlying framework from open source component encapsulation to self-development
EBS Oracle 11g 克隆步骤(单节点)
sql常用语法记录
2.2.3 output of documents
Clickhouse copy paste multi line SQL statement error
场景化面试:关于分布式锁的十问十答
Interviewer: will concurrent programming practice meet? (detailed explanation of thread control operation)
regular expression
Arcgis\qgis no plug-in loading (no offset) mapbox HD image map
EN 438-7 laminated sheet products for building covering decoration - CE certification
123456
Get JS of the previous day (timestamp conversion)
Parker驱动器维修COMPAX控制器维修CPX0200H
Four components of logger
JMeter installation under win7
ESP32
How to prepare for the algorithm interview and answer the algorithm interview questions
Learning notes of statistical learning methods -- Chapter 1 Introduction to statistical learning methods
xlrd常见操作
Some things make feelings nowhere to put