Subject: Re: QTreeView setFirstColumnSpanned?

Tomaz Canabrava tcanabrava at
Tue Jun 11 13:41:57 PDT 2013

On Tue, Jun 11, 2013 at 4:51 PM, Linus Torvalds
<torvalds at> wrote:
> On Tue, Jun 11, 2013 at 12:48 PM, Amit Chaudhuri
> <amit.k.chaudhuri at> wrote:
>> So, I think we can customise the text (etc.) in a given row, through a
>> simple custom delegate class, as long as we can specify "this row - index X
>> - is a trip row"
> .. but if we could do that, then we wouldn't need to play any games to
> begin with, because we could just use setFirstColumnSpanned().
> The problem is exactly that the "trip row" is a property of the
> *model*, not of the QTreeView.
>                    Linus

but we can test if index has children, if it does, trip.

More information about the subsurface mailing list