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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!