1.命名风格
Qt中偏好用小驼峰,来命名变量/函数,用大驼峰命名类。
2.文档使用
2.1 光标移动到类型或方法,按F1。自动打开对应文档。

2.2 在帮助中打开整个文档

2.3 开始查询Assistant

3.Qt窗口坐标体系
1.左手坐标系
原点为左上角,横轴为x,纵轴为y。

2.单位:像素
左边单位距离是1像素。
分辨率:
1920*1080简称为1080P分辨率。横轴1920个像素点,纵轴1080个像素点。
2560*14440 简称2K分辨率
如何为每个控件指定坐标位置?
确定原点位置:子元素的坐标原点位置在,父元素的控件的左上角。
子元素位置,默认放在父元素的原点,可以通过move()设置子元素位置。

演示:

.move()设置控件位置

Widget的没有父元素,以桌面左上角为原点。

.x(),.y()获取控件位置

