C++ Qt中setBrush我只发现了一种实现方式,为何以下语句中有两种?
painter.setBrush(QBrush(Qt::blue,Qt::Dense3Pattern))painter.setBrush(Qt::blue)Qt帮助文档是...
painter.setBrush(QBrush(Qt::blue,Qt::Dense3Pattern))
painter.setBrush(Qt::blue)
Qt帮助文档是这样的:
void QPainter::setBrush(const QBrush &brush)
Sets the painter's brush to the given brush.
The painter's brush defines how shapes are filled.
See also brush() and Settings.
void QPainter::setBrush(Qt::BrushStyle style)
This is an overloaded function.
Sets the painter's brush to black color and the specified style. 展开
painter.setBrush(Qt::blue)
Qt帮助文档是这样的:
void QPainter::setBrush(const QBrush &brush)
Sets the painter's brush to the given brush.
The painter's brush defines how shapes are filled.
See also brush() and Settings.
void QPainter::setBrush(Qt::BrushStyle style)
This is an overloaded function.
Sets the painter's brush to black color and the specified style. 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询