Qt 6.11 is out! See what's new in the release
blog
My tableView scrollbars wont update when the width changes?
General and Desktop
3
Posts
2
Posters
898
Views
1
Watching
-
Yes, the tableview is in the layout! This is my code
@
TableView{
id: masterTable;
height: parent.height;
width: parent.width;
TableViewColumn{role: "english"; title: "Text"; width:masterWindow.width;}
model: masterResource.filteredList;
itemDelegate: tableItemDelegate;flickableItem.onContentYChanged: { workTable.flickableItem.contentY = flickableItem.contentY; keyTable.flickableItem.contentY = flickableItem.contentY; } flickableItem.onContentXChanged: { workTable.flickableItem.contentX = flickableItem.contentX; keyTable.flickableItem.contentX = flickableItem.contentX; } onFocusChanged: { if(focus && madeList){ workTableFocus = false; masterTableFocus = true; keyTableFocus = false; workTable.selection.select(currentRow); keyTable.selection.select(currentRow); } } onClicked: { if(madeList){ selectable = true; workTableFocus = false; masterTableFocus = true; keyTableFocus = false; setCurrentRow(); workTable.selection.select(currentRow); keyTable.selection.select(currentRow); } } onCurrentRowChanged:{ rowChanged(); setEnglishText(); setEnglish(); workTable.selection.clear(); keyTable.selection.clear(); if(selectable){ workTable.selection.select(currentRow); keyTable.selection.select(currentRow); } } }@