Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

QComboBox focus is not shown with dotted border when Enter/Return key is pressed

$
0
0
Hi… I have a QLineEdit and a QComboBox, when the Focus is in the QLineEdit and if i press Enter/Return key the focus has to be changed to the QComboBox. I tried using event filters and the focus is changing to the QComboBox, but the problem is when the focus is in the QComboBox, it is not showing with the Dotted lines border…. Again if i press Enter the focus has to be changed to the QLineEdit. This one is also not working. Please post your suggestions.. if(keyEvent->key() == Qt::Key_Enter || keyEvent->key()== Qt::Key_Return) {     this->focusNextChild(); } Note: It works Fine if i press the Tab key for changing the Focus.

Viewing all articles
Browse latest Browse all 18427

Trending Articles