当前位置:网站首页>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 .
边栏推荐
- Oracle检查点队列–实例崩溃恢复原理剖析
- Utils/index TS tool function
- Chap2 steps into the palace of R language
- postgis 安装地理信息扩展
- vant 源码解析 event.ts 事件处理 全局函数 addEventListener详解
- SQL common syntax records
- 面试官:并发编程实战会吗?(线程控制操作详解)
- Clion configures Visual Studio (MSVC) and JOM multi-core compilation
- 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
- PostGIS installation geographic information extension
猜你喜欢

事项研发工作流全面优化|Erda 2.2 版本如“七”而至

2022-07-03-CKA-粉丝反馈最新情况

KingbaseES V8R3集群维护案例之---在线添加备库管理节点

Oracle检查点队列–实例崩溃恢复原理剖析

MMAP

Chapter 05_ Storage engine

面试官:并发编程实战会吗?(线程控制操作详解)

Scenario interview: ten questions and ten answers about distributed locks

Cross end solution to improve development efficiency rapidly

Five layer network protocol
随机推荐
XML modeling
Generics of TS
使用Aspect制作全局异常处理类
100 cases of shell programming
[daily training -- Tencent select 50] 89 Gray code (only after seeing the solution of the problem)
What are the requirements of UL 2043 test for drive housing in the United States?
Chap2 steps into the palace of R language
The primary key is set after the table is created, but auto increment is not set
有些事情让感情无处安放
Aitm 2-0003 horizontal combustion test
Li Kou ----- the maximum profit of operating Ferris wheel
selenium 获取dom内属性值的方法
int GetMonth( ) const throw( );后面的throw( )什么意思?
xlrd常见操作
Selenium gets the verification code image in DOM
Pytoch practice -- MNIST dataset handwritten digit recognition
Some things make feelings nowhere to put
事项研发工作流全面优化|Erda 2.2 版本如“七”而至
MySQL InnoDB Architecture Principle
sql常用语法记录