摘要: 效果图 //drawwidget.h #ifndef DRAWWIDGET_H #define DRAWWIDGET_H #include <QObject> #include <QWidget> #include <QtGui> #include <QMouseEvent> //鼠标事件 #inc 阅读全文
posted @ 2023-12-11 15:01 秃头的C# 阅读(87) 评论(0) 推荐(0)
摘要: 效果 // 定义一个新的类#ifndef PAINTERAREA_H #define PAINTERAREA_H #include <QObject> #include <QWidget> //QPen 画笔是基本的图形对象,绘制直线、曲线、多边形等形状 #include <QPen> //QBru 阅读全文
posted @ 2023-12-11 11:02 秃头的C# 阅读(51) 评论(0) 推荐(0)