diff --git a/src/Qt5/imports/FluentUI/Controls/FluTableView.qml b/src/Qt5/imports/FluentUI/Controls/FluTableView.qml index 14d6868c..8782cb2a 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluTableView.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluTableView.qml @@ -955,6 +955,16 @@ Rectangle { return false } sourceComponent: visible ? com_table_frozen : undefined + onStatusChanged: { + if(status === Loader.Ready){ + sourceComponent = Qt.binding(function(){ + if(modelData.frozen){ + return com_table_frozen + } + return undefined + }) + } + } } } } diff --git a/src/Qt6/imports/FluentUI/Controls/FluTableView.qml b/src/Qt6/imports/FluentUI/Controls/FluTableView.qml index 9f9b34a1..8144b8ca 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluTableView.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluTableView.qml @@ -955,6 +955,16 @@ Rectangle { return false } sourceComponent: visible ? com_table_frozen : undefined + onStatusChanged: { + if(status === Loader.Ready){ + sourceComponent = Qt.binding(function(){ + if(modelData.frozen){ + return com_table_frozen + } + return undefined + }) + } + } } } }