So I created a new widget for rendering propose in Qt. It overrides the virtual QWidget::paintEvent.
protected: vo