当前位置:网站首页>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 .
边栏推荐
- Advantages of robot framework
- Alibaba cloud award winning experience: build a highly available system with polardb-x
- Evolution of zhenai microservice underlying framework from open source component encapsulation to self-development
- R language [data management]
- How to send samples when applying for BS 476-7 display? Is it the same as the display??
- Four components of logger
- The primary key is set after the table is created, but auto increment is not set
- 有些事情让感情无处安放
- int GetMonth( ) const throw( );后面的throw( )什么意思?
- WPF gets the control in the datagridtemplatecolumn of the specified row and column in the DataGrid
猜你喜欢
力扣------经营摩天轮的最大利润
Using webassembly to operate excel on the browser side
Two ways to realize video recording based on avfoundation
2.2 basic grammar of R language
PVC plastic sheets BS 476-6 determination of flame propagation properties
Ethereum ETH的奖励机制
怎么利用Tensorflow2进行猫狗分类识别
[case] Application of positioning - Taobao rotation map
2022-07-03-CKA-粉丝反馈最新情况
第05章_存储引擎
随机推荐
Teach yourself to train pytorch model to Caffe (I)
Selenium finds the contents of B or P Tags
Selenium gets the verification code image in DOM
selenium 获取dom内验证码图片
uni-app 蓝牙通信
GCC9.5离线安装
让开发效率飞速提升的跨端方案
MySQL deep paging optimization with tens of millions of data, and online failure is rejected!
leetcode:1755. Sum of subsequences closest to the target value
Opérations de lecture et d'écriture pour easyexcel
MMAP
PVC plastic sheets BS 476-6 determination of flame propagation properties
Summary of data analysis steps
Reading and writing operations of easyexcel
Two ways to realize video recording based on avfoundation
Li Kou ----- the maximum profit of operating Ferris wheel
【日常训练--腾讯精选50】89. 格雷编码(看题解才会的)
postgis 安装地理信息扩展
Problems encountered in office--
How to send samples when applying for BS 476-7 display? Is it the same as the display??