Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Tab Ordering not working properly in widget
HunterMetcalfe last edited by
The issue is the tab order on one of my ui files. I know QT sets tab ordering based upon the order in which the widgets are created in the designer. Luckily this ordering is correct. Furthermore, the tab order in the designer is correct. However, when pressing tab, the ordering is completely off. When I manually set Tab ordering by setTabOrder(widget*, widget*), this tab ordering is not being followed. Here is an example of some of my code.
Just as a note m_editWidget and widget are container widgets of spinboxes and other things. m_setInputWidget is a customer widget that was "promoted" using Qt's promote functionality. From my understanding the tab order should tab to these specific widgets and then tab through those widgets sub widgets through the default QWidget::focusNextPrevChild. So if anyone has any ideas or suggestions to help me, I'd be most appreciative.