Question: how to change this when the wanted shape is circle in QT cpp QRectF ball::boundingRect() const { return QRect(0, 0, 20, 20); .h class ball
how to change this when the wanted shape is circle in QT
cpp
QRectF ball::boundingRect() const
{
return QRect(0, 0, 20, 20);
.h
class ball : public QGraphicsItem
{
public:
ball();
QRectF boundingRect() const;
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget);
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
