[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;

    @


  • Moderators



  • Thanks mate!

    That did the trick!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.