[PyQt] QTreeWidget/View: reimplementing drawTree()
Phil Thompson
phil at riverbankcomputing.com
Fri Apr 1 18:07:44 BST 2011
On Fri, 1 Apr 2011 09:59:50 -0700 (PDT), James Polk <jpolk5001 at yahoo.com>
wrote:
> Hi Phil,...thanks for your email..
>
> mmm,..how'bout drawBranch()...is that re-implementable?
>
> To explain a bit more,...the problem I'm having is that the "tree
> lines/branches"
> that display in the Tree view are taking the color of the background and
so
> appear to be invisible. By default, Maya uses a certain color
scheme,...
> if I launch with a different color scheme (which is possible with Maya
but
> my user base won't change) then the lines show up (as black lines on a
> very light-to-white background).
>
> While I have familiarity with using a delegate for handling model/view
> items,
> (Kudos to Pete ;-) it doesn't appear such a delegate is able to handle
the
> actual
> line tree/branches....
>
> Any thoughts?
Check the Qt documentation to see if a particular method is virtual.
Phil
More information about the PyQt
mailing list