Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Why Is QPainter Not Painting All Objects
EverydayDiesel last edited by
Can someone please tell me why rec1 does not get painted in the example below?
void MainWindow::paintEvent(QPaintEvent *event)
rect1 = QRect(500, 560, 280, 30); painter.drawRect(rect1); rect2 = QRect(400, 280, 180, 30); painter.drawRect(rect2);