QWidget's focus chain and order
-
What will return QWidget::previousInFocusChain() for the first and QWidget::nextInFocusChain() for the last widget in the focus chain? There is nothing about it in the documentation.
Also, is there any convenient way to get QList of widgets' child widgets sorted by focus order?
-
I suspect the last item in the focus chain would get returned. I have not used these but it sounds like these are what is used when the Tab is pushed for example. The order of these I suspect has to do with the order you add them to your layout.
-
-So if the focus chain is looped how is the first widget determined when it's parent widget appears?-
Just found QWidget::focusWidget() function.