Have a look at this post, you may need to change QPushButton to QCheckBox

http://www.qtcentre.org/threads/4146...ht=#post190790