PDA

View Full Version : PyQt: Assorted CheckBoxes and Radio Buttons in a TreeModel



EntityReborn
10th January 2011, 02:06
Hello. While using PyQT for python 2.7, I am trying to accomplish the following:
http://img810.imageshack.us/img810/5439/layoutlv.jpg
Basically, programmaticly have certain items with check boxes or groups of radio buttons.
Easily, I have implemented check boxes, yet I have no idea how to add support for radio buttons. My current source is here (http://paste.pound-python.org/show/1435/), which is based on the simpletreemodel example found in the PyQT distribution I am using.
My question is: how would I do this?