Qt4, QtCreator
I am trying to draw inside Widget:
void Widget::on_pushButton_clicked() { QPainter painter; painter.begin(ui->label); QRe
If you overwrite the paint-method as described by Arnold Spence, you should call the parent's paintEvent or you end up with a widget that only shows your rectangle on a white background.