<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Hi Phil,...thanks for your email..<br><br>mmm,..how'bout drawBranch()...is that re-implementable?<br><br>To explain a bit more,...the problem I'm having is that the "tree lines/branches"<br>that display in the Tree view are taking the color of the background and so<br>appear to be invisible.  By default, Maya uses a certain color scheme,...<br>if I launch with a different color scheme (which is possible with Maya but<br>my user base won't change) then the lines show up  (as black lines on a<br>very light-to-white background).<br><br>While I have familiarity with using a delegate for handling model/view items,<br>(Kudos to Pete ;-) it doesn't appear such a delegate is able to handle the actual<br>line tree/branches....<br><br>Any thoughts?<br><br>Thanks!<br>-Jim<br><br><br><br>--- On <b>Fri, 4/1/11, Phil Thompson
 <i><phil@riverbankcomputing.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Phil Thompson <phil@riverbankcomputing.com><br>Subject: Re: [PyQt] QTreeWidget/View: reimplementing drawTree()<br>To: "James Polk" <jpolk5001@yahoo.com><br>Cc: pyqt@riverbankcomputing.com<br>Date: Friday, April 1, 2011, 1:28 AM<br><br><div class="plainMail">On Thu, 31 Mar 2011 16:09:16 -0700 (PDT), James Polk <<a ymailto="mailto:jpolk5001@yahoo.com" href="/mc/compose?to=jpolk5001@yahoo.com">jpolk5001@yahoo.com</a>><br>wrote:<br>> I need to change/assign a unique color to the tree and branches of a<br>> QTreeWidget.<br>> It appears I need to reimplement the drawTree() function.  While I've<br>> implemented<br>> a treeview delegate before, this is unique enough (at least to me) to<br>have<br>> me a<br>> but stumped on syntax.  I've searched high
 and low for documentation and<br>> examples<br>> and can't find anything definitive.<br>> <br>> Does anybody out there have any experience or knowledge that you can<br>share<br>> on this?<br>> <br>> Many Thanks,<br>> -JP<br><br>You can't reimplement drawTree() as it isn't virtual. drawRow() is<br>however.<br><br>Phil<br></div></blockquote></td></tr></table>