[PyQt] qtreeview vs qtreewidget?
Chris Dunscombe
cdunscombe at yahoo.com
Wed Oct 21 08:37:04 BST 2009
If you were to post an example I for one would find it helpful and I'm sure others would as well.
Thanks,
Chris
--- On Wed, 10/21/09, William <abecedarian314159 at yahoo.com> wrote:
From: William <abecedarian314159 at yahoo.com>
Subject: Re: [PyQt] qtreeview vs qtreewidget?
To: "William" <abecedarian314159 at yahoo.com>, pyqt at riverbankcomputing.com
Date: Wednesday, October 21, 2009, 7:10 AM
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 (settingCheckState for a treewidget item). Is there a similar capability for the qtreeview if we are using qabstractitemmodel?
Thanks!
-----Inline Attachment Follows-----
_______________________________________________
PyQt mailing list PyQt at riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091021/388e745d/attachment-0001.html
More information about the PyQt
mailing list