Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to connect 2 QCombobox by focus?
vinh last edited by
I'm have 2 QCombobox, cbxA and cbxB.
connect( ui->qlineedited, SIGNAL( returnPressed() ), ui->cbxA, SLOT( setFocus() ) );code run OK, cbxA is focused.
connect( ui->cbxA, SIGNAL( ???() ), ui->cbxB, SLOT( setFocus() ) );I don't know SIGNAL after press enter in QCombobox?
I'm try so much ex: ui->cbxA->lineEdit() but cbxA don't have QLineEdit, because don't need it,...
How to connect QCombobox to focus it?
gde23 last edited by
look in the documentation to see the signals that QComboBox provides
currentIndexChanged(int index)is what you should use.
However, the focussing of the "next" widget typically is not done by signals/slots that set some focus but by the tab order, see here on how to specify tab order.