I am using QHeaderView::sectionMoved signal. It's working fine except with the case that when I move the item to the extreme right and have to auto scroll it to the last, I can never drop it as last column. Even when I am dropping it to the extreme right, it returns the newVisualIndex as 1 less than last. There is no issue in dropping at last when I don't have to scroll it. If all the columns are getting displayed in window, then its possible to drop at last also, but when I have to auto scroll it, then the problem is happening.

Thanks.