Subject: Re: QTreeView setFirstColumnSpanned?

Amit Chaudhuri amit.k.chaudhuri at
Sun Jun 9 11:03:44 PDT 2013

Hi Linus,

other Qt platoon members cc'd may know more.....but to get discussion

QTreeView has a protected virtual method for drawing a row.  I've not had
time to look at the code for that in any detail, but it sounds like an
invitation to sub-class and get any row specific behaviour we wish to

So we might consider something like this:

- sub-class QTreeView
- re-implement drawRow
- in our drawRow, test ( isTrip() )
- compose the custom string we want to display from trip data "fields"
- display trip in our custom manner
- else do the usual - 'cos it's not a trip


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the subsurface mailing list