[PyQt] qtreeview vs qtreewidget?
William
abecedarian314159 at yahoo.com
Wed Oct 21 07:10:10 BST 2009
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 <abecedarian314159 at yahoo.com>
To: pyqt at riverbankcomputing.com
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 <abecedarian314159 at yahoo.com>
To: pyqt at riverbankcomputing.com
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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091021/21ba4038/attachment.html
More information about the PyQt
mailing list