[Qt-interest] QAIM::headerData() is not tied to QModelIndex?
Andre Somers
andre at familiesomers.nl
Mon Aug 16 15:07:52 CEST 2010
Op 16-8-2010 14:32, Kishore schreef:
>> > Still, I think the reasoning of Kishore's question is, by extension of
>> > what you write above, valid. If you only show a subtree, then you could
>> > display a header that is valid for that subtree, could you not? It would
>> > make sense to have the views query for the headers as valid for a
>> > certain QModelIndex if you have set that index as the root index for
>> > that view. You just can not, in a standard view, display different
>> > headers for different levels. That would look confusing, I think. If you
>> > want something like that, you should just use QicsTable or a widget like
>> > that. I think the current QAbstractItemModel could even be extended to
>> > provide that functionality with full backwards compatibility. Simpy make
>> > the default implemenation call the old function, and change the views to
>> > query the new method.
> Exactly the situation in my use case, where I find such functionality useful.
I suggest you file a bugreport to ask for this functionality, with a
short explanation of your use case and how it could be implemented in a
backwards compatible way. Better yet, also implement it in Qt and do a
merge request.
André
More information about the Qt-interest-old
mailing list