Re: No Sort Vertical Header
Reimplement headerData() on the proxy and always return the regular sequence of row numbers.
Re: No Sort Vertical Header
OK, I so confused. Can you give me example code ?
Re: No Sort Vertical Header
Code:
QVariant myProxy
::headerData(int section, Qt
::Orientation orientation,
int role
) const { if(orientation!=Qt::Vertical || role!=Qt::DisplayRole)
return section;
}
Re: No Sort Vertical Header
That's can start from 0
So, i chane like this
Code:
QVariant MyProxy
::headerData(int section, Qt
::Orientation orientation,
int role
) const { if(orientation!=Qt::Vertical || role!=Qt::DisplayRole)
return section+1;
}
Thank's for your sample code. Solved now.