文章目录
1 QT常用的基础类型
1.1 基础类型
#include <QtGlobal>
1.2 字符串
字符串拼接 .arg
1.3 log输出
#include <QDebug>
qDebug() << "MCY --- 18 --- XHH Love U";
1.4 QVariant(包装类)
1.5 位置、尺寸、时间
- QPoint
- QLine
- QSize
- QRect
- QDate
- QTime
- QDateTime
2 信号和槽
2.1 简介
QObject::connect(...)
2.2 标准信号槽的使用
点击关闭窗口
QPushButton *ptn = new QPushButton(this);
ptn->move