Assuming you are trying to produce some sort of custom widget then you should sub-class QLabel, reimplement QWidget::paintEvent() and do your painting there. See the Analogue Clock Example.
You may be able to achieve a similar result using style sheets, particularly the background property
Bookmarks