Subject: Re: QTreeView setFirstColumnSpanned?
amit.k.chaudhuri at gmail.com
Sun Jun 9 11:03:44 PDT 2013
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...
More information about the subsurface