当前位置:网站首页>【QT】qtcreator便捷快捷键以及QML介绍
【QT】qtcreator便捷快捷键以及QML介绍
2022-06-25 06:40:00 【Cappuccino-jay】
在好使用的系统中和专业系统中,快捷键是不同的。作为专业的开发人员,你也许 会在你的应用程序上花很多时间,每一个快捷键都能使你的工作效率得到提高。Qt Creator的开发者也这样想,并且在应用程序中加入了许许多多的快捷键。
- Ctrl+B - 构建项目
- Ctrl+R - 运行项目
- Ctrl+Tab - 切换已打开的文档
- Ctrl+k - 打开定位器
- Esc - 返回
- F2 - 查找对应的符号解释。
- F4 - 在头文件与源文件之间切换(只对c++代码有效)
- F1 - 查看帮助文档
QML语法(QML Syntax)
QML是一种描述用户界面的声明式语言。它将用户界面分解成一些更小的元素,这 些元素能够结合成一个组件。QML语言描述了用户界面元素的形状和行为。用户界 面能够使用JavaScript来提供修饰,或者增加更加复杂的逻辑。从这个角度来看它 遵循HTML-JavaScript模式,但QML是被设计用来描述用户界面的,而不是文本文 档。
从QML元素的层次结构来理解是最简单的学习方式。子元素从父元素上继承了坐标 系统,它的x,y坐标总是相对应于它的父元素坐标系统。
import声明导入了一个指定的模块版本。一般来说会导入QtQuick2.0来作为初 始元素的引用。
使用//可以单行注释,使用/**/可以多行注释,就像C/C++和JavaScript一样。
每一个QML文件都需要一个根元素,就像HTML一样。
一个元素使用它的类型声明,然后使用{}进行包含。
元素拥有属性,他们按照name:value的格式来赋值。
任何在QML文档中的元素都可以使用它们的id进行访问(id是一个任意的标识 符)。
元素可以嵌套,这意味着一个父元素可以拥有多个子元素。子元素可以通过访 问parent关键字来访问它们的父元素。
建议
你会经常使用id或者关键字parent来访问你的父对象。有一个比较好的方法是命名 你的根元素对象id为root(id:root),这样就不用去思考你的QML文档中的根元素 应该用什么方式命名了。
边栏推荐
- OAuth 2.0一键登录那些事
- Storage of Galileo broadcast ephemeris in rtklib-b33
- Distributed quorum NWR of the alchemy furnace of the Supreme Master
- Estimation of dense forest volume based on LIDAR point cloud with few ground points
- [Batch dos - cmd Command - Summary and Summary] - cmd extension Command, extension Function (CMD / E: on, CMD / E: off)
- Sichuan earth microelectronics high performance, high integration and low cost isolated 485 transceiver
- realsense d455 semantic_ Slam implements semantic octree mapping
- What common APIs are involved in thread state changes
- Summary of small problems in smartbugs installation
- Vscode official configuration synchronization scheme
猜你喜欢
![[batch dos-cmd command - summary and summary] - CMD extended command and function (CMD /e:on, CMD /e:off)](/img/2b/4495a6cd41a2dd4e7a20ee60b398c9.png)
[batch dos-cmd command - summary and summary] - CMD extended command and function (CMD /e:on, CMD /e:off)

Chuantu microelectronics ca-if1051 can-fd transceiver

Vscode official configuration synchronization scheme

Tempest HDMI leak receive 1
![[batch dos-cmd command - summary and summary] - CMD window setting and operation commands (CD, title, mode, color, pause, CHCP, exit)](/img/8c/7345b4e8a55dcf11d18ac113df4fc2.png)
[batch dos-cmd command - summary and summary] - CMD window setting and operation commands (CD, title, mode, color, pause, CHCP, exit)

【批处理DOS-CMD命令-汇总和小结】-CMD窗口的设置与操作命令(cd、title、mode、color、pause、chcp、exit)
![不同路径II[针对DFS的动态规划改进]](/img/bb/1e1cee22b9de954de242d299a1a0eb.png)
不同路径II[针对DFS的动态规划改进]

Application of point cloud intelligent drawing in intelligent construction site

无“米”,也能煮“饭”利用“点云智绘”反演机载LiDAR林下缺失地面点攻略

Function template_ Class template
随机推荐
CPDA | how to start the growth path of data analysts?
Chuantu microelectronics 𞓜 subminiature package isolated half duplex 485 transceiver
[Batch dos - cmd Command - Summary and Summary] - External Command - cmd Download Command, wget Command
SQL solve select basic statement
太上老君的炼丹炉之分布式 Quorum NWR
Static bit rate (CBR) and dynamic bit rate (VBR)
搞清信息化是什么,让企业转型升级走上正确的道路
不同路径II[针对DFS的动态规划改进]
为什么要“除夕”,原来是内存爆了!
Tempest HDMI leak receive 1
音频(五)音频特征提取
Construction of occupancy grid map
C#获取exe的版本号-文件版本and程序集版本
Without "rice", you can cook "rice". Strategy for retrieving missing ground points under airborne lidar forest using "point cloud intelligent mapping"
13 `bs_duixiang.tag标签`得到一个tag对象
STL教程4-输入输出流和对象序列化
MySQL facet 01
Storage of Galileo broadcast ephemeris in rtklib-b33
Evolution of Alibaba e-commerce architecture
Genuine photoshop2022 purchase experience sharing