HorizontalHeaderView textRole not working
Unsolved
QML and Qt Quick
-
I have a Table View with custom c++ QAbstractTableModel class as the model.
The model has custom roles sent back to qml using a QHash.
The roles are:
{{Header Data, "HData" }, {First Name, "FName" }, {LastName, "LName" } } ;The table fills normally
Now :
HorizontalHeaderView { id: horizontalHeader syncView: tableView anchors.left: tableView.left textRole: "display" // which is the default }
The above results in HeaderData() method to be in voked, but if I change "display" to any other role the method never gets invoked.
Now I have a workaround to display the header text, but why is this happening I believe this might be a bug.