I am using a QTreeView component to display the data of a QDirModel object. How can I change the title of the columns (Name, Size, Type, and Date Modified)? I have tried the following function but it has no desired effect:

// QDirModel m_dirmodel;
m_dirmodel->setHeaderData(0, Qt::Horizontal, "New name");