绘图设备
QPixmap QBitMap(黑色),QPicture,QWidget
QPixmap
创建对象 QPixmap pix(w,h)
fill填充
保存 save
QImage img ( w,h ,format)设置像素色 setPixel
QPicture 重现和记录 绘图指令 后缀名随便写 无要求
#-------------------------------------------------
#
# Project created by QtCreator 2019-08-17T14:29:11
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = 04_QPainterDevice
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order