Subject: Re: QTreeView setFirstColumnSpanned?

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


Hi Linus,

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

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
have.

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

Regards,

A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130609/d111476c/attachment.html>


More information about the subsurface mailing list