Hello,
I'm trying to change focus from a QLineEdit to a QPushButton, using ui.myButton->setFocus() inside an event filter, but when I do so, the button's focus rectangle does not draw. I know that the button has the focus, because if I hit Return, the program acts as if the button was clicked.
If I use the tab key to change focus, then the button's focus rect is drawn correctly.
So, why doesn't the focus rect draw if I use setFocus()? (I tried using releaseKeyboard() from the QLineEdit, but that didn't help.)
Any help would be greatly appreciated.
Thanks!
Bookmarks