Ok, I have it--If anyone wants it, I can try to post an example (I wrote it for 
my usecase, so I'd have to write it for something more generic)

William



________________________________
From: William <[email protected]>
To: [email protected]
Sent: Tue, October 20, 2009 11:17:05 PM
Subject: Re: [PyQt] qtreeview vs qtreewidget?


Ok, I figured out how to allow checkboxes in a qtreeview (using flags()) and 
how to set their state using QtCore.Qt.CheckStateRole in my data() method.  
However, I still need help on one thing:

What is the signal that lets me know if someone has clicked on the checkbox?  
If I can get that, then I can change my data and I assume that the view will 
update.

Thanks,
William



________________________________
From: William <[email protected]>
To: [email protected]
Sent: Tue, October 20, 2009 6:09:46 PM
Subject: [PyQt] qtreeview vs qtreewidget?


A quick question--in the qtreewidget, one can make a checkbox for items (setting
CheckState for a treewidget item).  Is there a similar capability for the 
qtreeview if we are using qabstractitemmodel?


Thanks!


      
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to