Qt 6.5: QML TableView lose resizing ability when using columnWidthProvider
-
In Qt 6.5 TableView, the ability to resize rows is very welcome as it was something that was available in the old QtQuick.Controls 1. But I have noticed that when using columnWidthProvider
columnWidthProvider: function(column) { if(columnsModel.at(column).visible) return table.view.columnWidth(column) return 0 }
Make it that the rows are not resizable anymore because columnWidthProvider is invoke every time I drag the cell to resize it, so the size is always reseted to the value returned by columnWidthProvider.
Am I doing something wrong or is there a way to overcome this issue?
-
I know it's an old post but if anyone is looking for the solution. I faced the same problem. column width provider enforces the width and blocks the resize option. The workaround for this is to create a function for columnwidthprovider and set the width of the delegates directly using the function