当前位置:网站首页>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 .
边栏推荐
- regular expression
- What should I do to prepare for the interview algorithm position during school recruitment?
- [case] Application of positioning - Taobao rotation map
- Sorting out the problems encountered in MySQL built by pycharm connecting virtual machines
- Introduction to TS, constructor and its this, inheritance, abstract class and interface
- Objects in the list, sorted by a field
- 秋招将临 如何准备算法面试、回答算法面试题
- vant 源码解析 event.ts 事件处理 全局函数 addEventListener详解
- Alibaba cloud award winning experience: build a highly available system with polardb-x
- Teach yourself to train pytorch model to Caffe (I)
猜你喜欢
冯唐“春风十里不如你”数字藏品,7月8日登录希壤!
Influence of oscilloscope probe on signal source impedance
What should I do to prepare for the interview algorithm position during school recruitment?
The transformation based on vertx web sstore redis to realize the distributed session of vertx HTTP application
Scenario interview: ten questions and ten answers about distributed locks
LeetCode_ Hash table_ Difficulties_ 149. Maximum number of points on the line
R language [data management]
MySQL 千万数据量深分页优化, 拒绝线上故障!
Alibaba cloud award winning experience: build a highly available system with polardb-x
Reading and writing operations of easyexcel
随机推荐
阿里云有奖体验:用PolarDB-X搭建一个高可用系统
Vant source code parsing event Detailed explanation of TS event processing global function addeventlistener
js常用方法封装
2.2.3 output of documents
PostGIS installation geographic information extension
SQL common syntax records
EN 438-7 laminated sheet products for building covering decoration - CE certification
kingbaseES V8R3数据安全案例之---审计记录清除案例
Arcgis\qgis no plug-in loading (no offset) mapbox HD image map
Pytoch practice -- MNIST dataset handwritten digit recognition
校招期间 准备面试算法岗位 该怎么做?
Sequence alignment
What are the requirements of UL 2043 test for drive housing in the United States?
Aitm2-0002 12s or 60s vertical combustion test
[case] Application of positioning - Taobao rotation map
ESP32
selenium 获取dom内验证码图片
R language [data management]
Realize the function of verifying whether the user has completed login when browsing the page
Postgres establish connection and delete records