I have QTreeViewfilled with elements from the model. When a call to is edit()made by index, a custom editor is displayed. The editor consists of two QLineEditwidgets.

I want the focus to switch between two QLineEditwidgets when you press Tab. However, pressing Tab cycles through everything else in my program. All my items QPushButtonand QTabWidgetare included in the order of the tabs, even if they are completely different widgets than my editor.
I tried to set the tab order with help setTabOrder()to encode it between two widgets QLineEdit, however this still does not isolate the editor widget from the surrounding widgets. Why is this happening?
NOTE. I am not trying to disable the tab setting elsewhere, just isolate it to my editor.
Thank you for your time!
source
share