“Refreshing” column header names in QT model
Question
Does anyone know how you "refresh" the names of the columns (the column headers) in QT?
I have code that, in certain cases, changes the name of a column.
model_ptr->header_list.replace( 1, "Bank #" );
Another example:
model_ptr->header_list.replace( 1, "Credit Union #" );
However this is only being refreshed when I actually click on the column header to sort by that column. I would like it to update without having to click on the column header.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow