Beginners Qt learning (Basic Operation)

Qt base class

QWidget: common base class, blank window
QMainWindow: on the basis of QWidget adds some features
QDialog

Common tools like Qt

  1. QPainter
    basic class painter
QPainter p(this);			定义一个画家

QPen
  brush class

//可以定义画笔并设置笔的颜色和粗细
QPen pen;
pen.setColor("blue");
p.setPen(pen);
  1. QLabel
    label class
  2. 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
  3. QSequentialAnimation
    Animation classes, continuous animation
  4. QImage
    pictures class, used to define the picture object
Function signals and slots
扩展:
	(C++标准)父类的指针可以指向子类的对象,反过来不可以
	子类的

Animation

Timer

Released nine original articles · won praise 4 · Views 1015

Guess you like

Origin blog.csdn.net/L18273121172/article/details/95238154