#include "widget.h"
#include "ui_widget.h"
#include<QBitmap>
#include<QPainter>
Widget::Widget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::Widget)
{
ui->setupUi(this);
QBitmap bp(200,200);
QPainter p(&bp);
p.drawEllipse(QPoint(100,100),100,100);
bp.save("F:\\QST_QT\\projects_qt\\4_1_paintdevice\\yuan.jpg");
}
Widget::~Widget()
{
delete ui;
}
QT Qbitmap的基本使用
最新推荐文章于 2024-08-02 17:56:54 发布