Qt:QML:JavaScript 和QML 语法错误表
语法错误表
Id | Severity | Message | Description |
---|---|---|---|
M1 | Error | Invalid value for enum | 无效的枚举值 |
M2 | Error | Enum value must be a string or a number | 枚举值必须为字符串或数字 |
M3 | Error | Number value expected | |
M4 | Error | Boolean value expected | |
M5 | Error | String value expected | |
M6 | Error | Invalid URL | 无效的URL |
M7 | Warning | File or directory does not exist | 文件或目录不存在 |
M8 | Error | Invalid color | 无效的颜色 |
M9 | Error | Anchor line expected | |
M10 | Error | Duplicate property binding | |
M11 | Error | Id expected | |
M14 | Error | Invalid id | 无效的id |
M15 | Error | Duplicate id | id |
M16 | Error | Invalid property name name | 无效属性名 |
M17 | Error | Name does not have members | |
M18 | Error | Field is not a member of object | |
M19 | Warning | Assignment in condition | It could be a typing error.If it is intentional, wrap the assignment in parentheses. |
M20 | Warning | Unterminated non - empty case block | Case blocks should either be empty or end in a flow control statement such as break, return or continue.Alternatively you can indicate intentional fall through by ending with a // fall through comment. |
M23 | Warning | Do not use eval | |
M28 | Warning | Unreachable | Indicates that the underlined statement will never be executed. |
M29 | Warning | Do not use with | |
M30 | Warning | Do not use comma expressions | |
M31 | Warning | Unnecessary message suppression | |
M103 | Warning | Name is already a formal parameter | |
M104 | Warning | Name is already a function | |
M105 | Warning | Var name is used before its declaration | |
M106 | Warning | Name is already a var | |
M107 | Warning | Name is declared more than once | Variables declared in a function are always visible everywhere in the function, even when declared in nested blocks or for statement conditions.Redeclaring a variable has no effect. |
M108 | Warning | Function name is used before its declaration | |
M109 | Warning | Do not use Boolean as a constructor | |
M110 | Warning | Do not use String as a constructor | |
M111 | Warning | Do not use Object as a constructor | |
M112 | Warning | Do not use Array as a constructor | |
M113 | Warning | Do not use Function as a constructor | |
M114 | Hint | The function keyword and the opening parenthesis should be separated by a single space | |
M115 | Warning | Do not use stand - alone blocks | Blocks do not affect variable scoping.Thus blocks that are not associated to if, while, etc.have no effect and should be avoided. |
M116 | Warning | Do not use void expressions | |
M117 | Warning | Confusing pluses | |
M119 | Warning | Confusing minuses | |
M121 | Hint | Declare all function vars on a single line | |
M123 | Hint | Unnecessary parentheses | |
M126 | Warning | == and != may perform type coercion, use == = or != = to avoid it | The non - strict equality comparison is allowed to convert its arguments to a common type.That can lead to unexpected results such as ’ \t\r\n’ == 0 being true.Use the strict equality operators == = and != = and be explicit about conversions you require. |
M127 | Warning | Expression statements should be assignments, calls or delete expressions only | |
M128 | Error | A state cannot have the specified child item | |
M201 | Hint | Place var declarations at the start of a function | |
M202 | Hint | Use only one statement per line | |
M203 | Warning | Imperative code is not supported in the Qt Quick Designer | |
M204 | Warning | This QML type is not supported in the Qt Quick Designer | |
M205 | Warning | Reference to parent QML type cannot be resolved correctly by the Qt Quick Designer | |
M206 | Warning | This visual property binding cannot be evaluated in the local context and might not show up in Qt Quick Designer as expected | |
M207 | Warning | Qt Quick Designer only supports states in the root QML type | |
M208 | Error | This id might be ambiguous and is not supported in the Qt Quick Designer. | |
M209 | Error | This type(type name) is not supported as a root element by Qt Quick Designer. | |
M220 | Error | This type(type name) is not supported as a root element of a Qt Quick UI form. | |
M221 | Error | This type(type name) is not supported in a Qt Quick UI form. | |
M222 | Error | Functions are not supported in a Qt Quick UI form. | |
M223 | Error | Java Script blocks are not supported in a Qt Quick UI form. | |
M224 | Error | Behavior type is not supported in a Qt Quick UI form. | |
M225 | Error | States are only supported in the root item in a Qt Quick UI form. | |
M226 | Error | Referencing the parent of the root item is not supported in a Qt Quick UI form. | |
M300 | Error | Unknown component | |
M301 | Error | Could not resolve the prototype name of object | |
M302 | Error | Could not resolve the prototype name | |
M303 | Error | Prototype cycle, the last non - repeated component is name | |
M304 | Error | Invalid property type name | |
M305 | Warning | == and != perform type coercion, use == = or != = to avoid it | See M126. |
M306 | Warning | Calls of functions that start with an uppercase letter should use new | By convention, functions that start with an uppercase letter are constructor functions that should only be used with new. |
M307 | Warning | Use new only with functions that start with an uppercase letter | |
M308 | Warning | Do not use Number as a constructor | |
M309 | Hint | Use spaces around binary operators | |
M310 | Warning | Unintentional empty block, use({}) for empty object literal | |
M311 | Hint | Use type instead of var or variant to improve performance | |
M312 | Error | Missing property number | |
M313 | Error | Object value expected | |
M314 | Error | Array value expected | |
M315 | Error | Value value expected | |
M316 | Error | Maximum number value is number | |
M317 | Error | Minimum number value is number | |
M318 | Error | Maximum number value is exclusive | |
M319 | Error | Minimum number value is exclusive | |
M320 | Error | String value does not match required pattern | |
M321 | Error | Minimum string value length is number | |
M322 | Error | Maximum string value length is number | |
M323 | Error | Number elements expected in array value | |
M324 | Warning | Using Qt Quick 1 code model instead of Qt Quick 2 | The code model might be corrupt or the QML emulation layer might have been built with a different Qt version than the one selected in the build and run kit.For more information, see Resetting the Code Model and Running QML Modules in Qt Quick Designer. |
参考
http://doc.qt.io/qtcreator/creator-checking-code-syntax.html
Qt:QML:JavaScript 和QML 语法错误表相关推荐
- PHP解析/语法错误; 以及如何解决它们?
本文翻译自:PHP parse/syntax errors; and how to solve them? Everyone runs into syntax errors. 每个人都遇到语法错误. ...
- 使用node.js检查js语法错误
如果没有一些工具和插件写JavaScript代码遇到语法错误找起来很费时间,请教了同事怎么用node.js检查 用浏览器测试的时候报语法错误. 1.点击红圈中的蓝色按钮,下次刷新是会在抛出异常的时候自 ...
- QT通过JavaScript动态创建QML对象
QT通过JavaScript动态创建QML对象 通过JavaScript动态创建QML对象 动态创建对象 动态创建组件 从QML字符串创建对象 维护动态创建的对象 动态删除对象 通过JavaScrip ...
- QML的语法——样式表QSS
一.QSS介绍 如果学过前端的话,QSS(Qt style sheet)就很好理解了.QSS 是一个非常强大的用于自定义控件外观的机制.它的概念,术语以及语法都是受到了 HTML CSS 的启发. Q ...
- Qt 从C ++定义QML类型(一)
概述 前面几篇文章介绍了如何在 QML 中调用 C++ 属性,那么这里集中总结一下如何在 C++中定义 QML 类型,其实在之前的示例中已经有用到过的. 当用C ++代码扩展QML时,可以向QML类型 ...
- idea中设置文件不检查语法_如何让IntelliJ忽略一个.js文件中的javascript语法错误?...
在我的IntelliJ项目中,我有这个文件: MyMvnModule\src\main\webapp\WEB-INF\Owasp.csrfguard.js 此文件包含在运行时由servlet填充的这些 ...
- python中语法错误-python冒号语法错误python中如何创建字典
python字典定义 字典是另一种可变容器模型,且可存储任意类型对象. 字典的每个键值 key=>value 对用冒号 : 分割,每个键值对之间用逗号 , 分割,整个字典包括在花括号 {} 中 ...
- QT与JavaScript交互/Qt调用JS脚本
QT与JavaScript交互/Qt调用JS脚本 简介 QT中调用JS函数 JS中调用QT函数 完整代码 mainwindow.h mainwindow.cpp html.html Qt调用JS脚本 ...
- QML笔记:QML基本概念及使用
QML笔记:QML基本概念及使用 Qt5中的Qt Qml和Qt Quick架构 Qt Qml模块本身并没有涉及图形显示,所有的图形处理都由Qt Quick模块完成. Qt Quick 以QPA(Qt ...
- 【JavaScript】基本语法大全
前言: 大家好,我是程序猿爱打拳.在学习C和Java这样的后端编程语言后,我们大概率会学习一些关于前端的语言如HTMLJavaScript.又因为前后端基本语法有些许不同,因此我整理出来.今天给大家讲 ...
最新文章
- 蓝桥分酒java_[蓝桥杯][java]海盗分酒
- 2019.7.9 校内测试题 史密斯数
- ASP.NET aspx页面中 写C#脚本; ASP.NET 指令(%@%);
- Git新建分支出现fatal: Not a valid object name: ‘master‘错误
- python的flask实现第三方登录怎么写_Python语言的Flask框架应用程序实现使用QQ账号登录的方法...
- Redis数据结构-对象
- 再见,Navicat!这个 IDEA 的兄弟,真香!
- java json传值到前台_json前后台传值
- RAC 特点 character
- power query时间函数(思维导图)
- 常用win10优化工具(后续继续更新)
- linux vdi,linux – 调整vdi大小不能正常工作
- 工程流体力学笔记暂记42 (收缩喷管中的流动)
- win10自动修复系统
- 常见虚拟机及网络模式
- 大数据培训课程数据清洗案例实操-简单解析版
- VUE基本使用---安装、开始使用介绍、Vue实例、模板语法、计算属性和侦听器、class与style绑定
- JAVA代码实现扫码购带圆图二维码生成
- 【代码总结-不定期更新】
- 双线机房和双线双IP机房的区别
热门文章
- 【Python 语言基础】第一章 Python入门
- 【CVPR 2021联邦学习论文解读】Model-Contrastive Federated Learning (MOON) 联邦学习撞上对比学习
- 论文中baseline是什么意思?
- MySQL数据库安装超级详细教程
- 【读书笔记《Android游戏编程之从零开始》】12.游戏开发基础(Canvas 画布)
- csdn 获取下载积分
- python程序设计简明教程第二版答案_Python简明教程精编.pdf
- JAVA进行文档转换_基于JAVA实现由Word文档向LaTeX文档转换的方法及系统与流程
- Python深度学习---第1章 什么是深度学习
- Win系统 - NETSH WINSOCK RESET