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?