[Qt-interest] Infinite loop with QHeaderView::sortIndicatorChanged
Stephen Collyer
scollyer at netspinner.co.uk
Sun May 17 12:32:34 CEST 2009
2009/5/17 Sean Harmer <sean.harmer at maps-technology.com>
> On Saturday 16 May 2009 20:44:24 Stephen Collyer wrote:
> > I'm trying to implement column sorting in a QTableView. I have
> > code like so:
>
> Can't you simply call QTableView::setSortingEnabled( true ) when you
> initialise your view and let the default implementation handle everything
> for
> you?
>
I've tried that. The sort indicators seem to do nothing by default.
I guess each app has to implement its own sorting logic but I can't find
too many details on how to do so at the moment. (What determines
the sort order, for example ?)
--
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090517/98cbb44d/attachment.html
More information about the Qt-interest-old
mailing list