Use QAbstractItemModel::removeColumn() to remove non needed columns. It will save memory and provides better performance.
Use QAbstractItemModel::removeColumn() to remove non needed columns. It will save memory and provides better performance.
I dont know how to use it; especially what to give as a second argument, QModelIndex. I'm pretty sure it cant be be a single item from the model, but dont have any ideas. Can you explain me it a bit more accurately or simply write a small piece of code which will remove single column?
thanks in advance
I see right know that QFileSystemModel does not reimp removecolumns, so you can't use it. Then you have to use the selection options.
Treadstone (19th August 2010)
Thanks, used selectedRows() and it's working fine![]()
Regards
Bookmarks