Qt QPainter QBrush 填充区域

 

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

 

 

 

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

相关文章:

  • 2022-12-23
  • 2021-10-06
  • 2022-01-04
  • 2021-04-02
  • 2021-05-04
  • 2021-05-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2021-08-30
  • 2022-12-23
相关资源
相似解决方案