I dont think you can achieve it directly in windows.
You may try this -
draw the numbers on a pixmap, create a mask from the pixmap and set it on the widget. In this way you might get only numbers displayed.
Look for the shaped clock example in Qt demo how to use masks on widgets![]()
Bookmarks