SOLVED: QTreeView Navigation with TAB-Key

  • Currently when pressing the TAB-key, the focus changes to the next row.

    I have here a QTreeView with multiple columns and I would like to change the behaviour to "tab" to the element in next column.

    I have done theses two, but it seems I need to set a little bit more :-(

  • Solved: Have to subclass QTreeView and reimplement
    virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers)

Log in to reply

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