PDA

View Full Version : QAbstractItemModel shifiting up and down



mattjgalloway
5th June 2007, 14:33
There doesn't seem to be an easy method for shifting items up and down in a model that I can see.

There is the insertRow and removeRow functions, but no way of shifting a row up and down. Is there no method defined by Qt to do this? So will I need to implement my own slot to do this?

Thanks!

jacek
5th June 2007, 23:09
QHeaderView::moveSection() might help.

mattjgalloway
6th June 2007, 08:41
Yes, that looks to be something I can definitely use! I'll have a look into it anyway! Thanks!