[Solved] Tableview tab key problem!
-
Hey!
I have a tableview where I want to to customize where the focus is set next when you push the tab key. All keys works perfectly except for the tab key and back tab. Seems like the default overrides my command.
What do I need to do?
@
TableView{
id: masterTable;
TableViewColumn{
id: masterCol;
role: "english";
title: "Text";
elideMode: Text.ElideNone;
}
model: masterResource.filteredList;
itemDelegate: tableItemDelegate;
headerVisible: false;onClicked: { if(madeList){ updateScrollBar(); selectable = true; setSelections(); } } //Works perfectly Keys.onDigit0Pressed: { console.log(currentRow); } //None of the below works
// Keys.onBacktabPressed: {
// console.log("Backtab pressed!");
// }
// Keys.onTabPressed: {
// console.log("Hei");
// }// KeyNavigation.backtab: langInput;
@
-
Hi,
Try setting "activeFocusOnTab":http://qt-project.org/doc/qt-5/qml-qtquick-item.html#activeFocusOnTab-prop to false.