You can draw by using QWidget::paintEvent()