<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div>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:</div><div><br></div><div>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.</div><div><br></div><div>Thanks,</div><div>William</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> William <abecedarian314159@yahoo.com><br><b><span style="font-weight:
bold;">To:</span></b> pyqt@riverbankcomputing.com<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, October 20, 2009 6:09:46 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [PyQt] qtreeview vs qtreewidget?<br></font><br>
<div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt;"><div>A quick question--in the qtreewidget, one can make a checkbox for items (setting</div><div><span class="Apple-style-span" style="font-family:'Times New Roman';font-size:medium;">CheckState for a treewidget item). Is there a similar capability for the qtreeview if we are using qabstractitemmodel?</span></div><div><font class="Apple-style-span" face="'Times New Roman'"><span class="Apple-style-span" style="font-size:medium;"><br></span></font></div><div><font class="Apple-style-span" face="'Times New Roman'"><span class="Apple-style-span" style="font-size:medium;"><br></span></font></div><div><font class="Apple-style-span" face="'Times New Roman'"><span class="Apple-style-span" style="font-size:medium;">Thanks!</span></font></div><div style=""></div></div><br>
</div></div><div style="position:fixed"></div></div><br>
</body></html>