PDA

View Full Version : how to create checkbox with images in a QBoxGroup



krystosan
6th December 2012, 11:42
8481

I am a beginner and I want to learn by creating GUI as I learn,

I followed zetcode but never encountered how to put images in the checkbox like this
can anyone show me the way how i can create a checbox group in PyQt4 like shown in the attachment ?

anda_skoa
6th December 2012, 20:32
You call the setIcon() method of the radio button, passing an icon that contains the desired image.

Cheers,
_