<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">If you were to post an example I for one would find it helpful and I'm sure others would as well.<br><br>Thanks,<br><br>Chris<br><br>--- On <b>Wed, 10/21/09, William <i>&lt;abecedarian314159@yahoo.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: William &lt;abecedarian314159@yahoo.com&gt;<br>Subject: Re: [PyQt] qtreeview vs qtreewidget?<br>To: "William" &lt;abecedarian314159@yahoo.com&gt;, pyqt@riverbankcomputing.com<br>Date: Wednesday, October 21, 2009, 7:10 AM<br><br><div id="yiv2093635488"><style type="text/css"><!--#yiv2093635488 DIV {margin:0px;}--></style><div style="font-family: 'times new roman','new york',times,serif; font-size: 12pt;"><div>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)</div><div><br></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 face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> William &lt;abecedarian314159@yahoo.com&gt;<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 11:17:05 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [PyQt] qtreeview vs qtreewidget?<br></font><br>
<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. &nbsp;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? &nbsp;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 face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> William &lt;abecedarian314159@yahoo.com&gt;<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&nbsp;for a treewidget item). &nbsp;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=""></div></div><br>

      </div></div><div style=""></div></div><br>

      </div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>PyQt mailing list&nbsp; &nbsp; <a ymailto="mailto:PyQt@riverbankcomputing.com" href="/mc/compose?to=PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br><a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></div></blockquote></td></tr></table><br>