diff --git a/src/Qt5/imports/FluentUI/Controls/FluTableView.qml b/src/Qt5/imports/FluentUI/Controls/FluTableView.qml index ed3d7713..2168b88a 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluTableView.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluTableView.qml @@ -67,6 +67,7 @@ Rectangle { Component{ id:com_edit FluTextBox{ + id:text_box text: display readOnly: true === columnSource[column].readOnly Component.onCompleted: { @@ -75,7 +76,7 @@ Rectangle { } onCommit: { if(!readOnly){ - display = text + display = text_box.text } tableView.closeEditor() } diff --git a/src/Qt6/imports/FluentUI/Controls/FluTableView.qml b/src/Qt6/imports/FluentUI/Controls/FluTableView.qml index aa56ae38..298488d5 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluTableView.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluTableView.qml @@ -69,6 +69,7 @@ Rectangle { Component{ id:com_edit FluTextBox{ + id:text_box text: display readOnly: true === columnSource[column].readOnly Component.onCompleted: { @@ -77,7 +78,7 @@ Rectangle { } onCommit: { if(!readOnly){ - display = text + display = text_box.text } tableView.closeEditor() }