The QRect class, part of the Qt framework, defines a rectangle in the plane using integer precision.
How would I go about drawing a rectangle? I have tried two different ways; void MyWidget::paintEvent(QPaintEvent *) { QPainter painter(…
qt qpainter qrect