TableView not working correctly at displaying the header's data on qt 6.7.0
-
Hi
I am implementing a tableview from this example repository site "https://github.com/rutura/learnqt_blog_posts" using qt 6.7.0 but the VerticalHeaderView and HorizontalHeaderView models are not displaying the header's data.
I set a Breakpoint on the headerData method but it does not get called.
I decided to use qt 6.5.3 LTS with the exact same project and this time everything works as expected.Does the implementation changed in qt 6.7.0?
It seams that the headerview model is not accessing the tableview's headeData method. I also get this error on the console :"qrc:/qt-project.org/imports/QtQuick/Controls/Material/VerticalHeaderView.qml:36:13: Unable to assign [undefined] to QString"
Any help on what is going on?
Thanks
-
Yes, I see the exact same thing. Looks like a regression. Please file a bug.
[EDIT]
Several bugs filed on this already:
https://bugreports.qt.io/browse/QTBUG-120315?filter=-4&jql=text ~ "headerData" order by created DESC
Basically, you need to map the userRole properly... else the QML cannot access. It is correctly using the userNames function now.