Set delegate for QTreeWidget header
I need to set delegate for QTreeWidget header or make it working with HTML tags using other ways.
I set a delegate for QTreeWidget items using
and it works.
But setting a delegate to the header does not work :
Maybe switch to model/view to implement this.
bq. Maybe switch to model/view to implement this.
What does it mean?
Use the Model/View method instead of the Widget will give you more options to control the delegates for every cell. The View does what the name says, shows stuff. The model holds the data and the way it is presented by the view.
Read this: "Model/View doc":http://qt-project.org/doc/qt-4.8/modelview.html
I will consider this. But I have a big project As far as I understand in this case I need to make many changes in this project.