Quote Originally Posted by axeljaeger View Post
You have to use custom delegate.
Hi,

I have tried using custom delegates and it works fine.

But i have another problem. If sorting is enabled in QTableView and i change the sort order then the delegate disappears i.e. it is not used after the model is sorted.

Can some one suggest a way to enable sorting while using custom delegates.

Another approach which i will be trying is to use the QHeaderView signal to indicate that sorting order has been changed and then call QTableView::sortByColumn


thanks,

Anuj