PDA

View Full Version : QPushButton



anafor2004
21st October 2009, 16:26
Dear Friends,
I want to add a pixmap to QPushButton and draw it as QIcon, and add a text under QIcon,

QPushButton size is (100,100) QIcon size is 64x64 , How may I draw Icon at pos(10,10)
then drawtext under Icon?

Lykurg
21st October 2009, 16:31
How may I draw Icon at pos(10,10)
then drawtext under Icon?
Subclass and do the drawing yourself or better use QToolButton, because this class does exactly what you want.