Qt QPainter QBrush 填充区域

Qt QPainter QBrush 填充区域

 

QBrush brush;
brush.setColor(Qt::red);//设置颜色
brush.setStyle(Qt::SolidPattern);
painter.setBrush(brush);
painter.drawRect(rect3_x,rect3_y,200,200);//绘制矩形

 

 

 

############################

posted @ 2021-05-02 20:41  西北逍遥  阅读(1534)  评论(0编辑  收藏  举报