I copied your code example, compiled it, run it, pressed the down arrow twice to select item3, pressed Enter. Item3 remained selected, exactly as expected. I repeated it with the mouse to select item 3: same result. Since you are doing something custom with Enter key presses I would start by looking there.
It could be that:
- Not everyone is in your time zone: I certainly wasn't waiting at 00:45 this morning for your post.
- Not everyone has unlimited time to debug other people's code.
- Nobody cares
A quick download and build of your code: no problem with either the value in the edited combo box or the change of focus.
I am wondering why you maintain a separate list of widgets to determine where next to put focus. Surely QWidget::nextInFocusChain() is an obvious candidate for this given that you have a pointer to the widget with the key press event.
Bookmarks