My tableView scrollbars wont update when the width changes?
-
Hi! I have a tableview where the width is changable. Why wont my scrollbars update when the size of the tableview changes?
-
Hello,
do You have Your table placed in the layout?
Can You post short code example? It would make it easier to figure out what's wrong...
best wishes,
poorBob -
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); } } }
@