You need to read the Frozen Column example and understand how it works then the problem becomes easier.
Attached is a modified version of the Qt5 example with a custom header and two frozen columns. Look for <<<<<< in the code.
Hopefully this will put an end to all four threads on this topic:
Bookmarks