[Solved] Tableview tab key problem!
-
wrote on 30 Jul 2014, 06:38 last edited by
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.
-
wrote on 30 Jul 2014, 10:03 last edited by
Thanks mate!
That did the trick!
1/3