Qt绘图设置画笔画刷

pen.setWidth(0);
    pen.setColor(QColor(0, 255, 255, 100));
    
    pen.setStyle(Qt::SolidLine);
    pen.setCapStyle(Qt::SquareCap);
    pen.setJoinStyle(Qt::MiterJoin);
painter->setPen(pen);
QBrush b;
b.setColor(Qt::red);
b.setStyle(Qt::SolidPattern);

你可能感兴趣的:(qt,开发语言)