Qt base class
QWidget: common base class, blank window
QMainWindow: on the basis of QWidget adds some features
QDialog
Common tools like Qt
- QPainter
basic class painter
QPainter p(this); 定义一个画家
QPen
brush class
//可以定义画笔并设置笔的颜色和粗细
QPen pen;
pen.setColor("blue");
p.setPen(pen);
- QLabel
label class - QPropertyAnimation
basic animation classes: to make the control (e.g., label) to move, to change the rotation to achieve transparency change, gradients, size of the location - QSequentialAnimation
Animation classes, continuous animation - QImage
pictures class, used to define the picture object
Function signals and slots
扩展:
(C++标准)父类的指针可以指向子类的对象,反过来不可以
子类的
Animation
Timer