PDA

View Full Version : setFocus and pushButton



Azur
28th October 2015, 22:25
I have a search lineEdit that is being populated with a search result when there is only one value left in it. egg I'm typing in users name and when there is only one user left with the combination of letters I have typed in his full name is being populated in lineEdit. After that I have setFocus function and it works great when I set it to another lineEdit.

When I set it to move focus to pushButton it does not move it after result is returned but it requires me to type one more letter. So most of the time I end up with invade user name because that addition letter is being typed in.

Is this know issue? Any help would be highly appreciated.

Thank you for your help and time.

Azur

ChrisW67
30th October 2015, 19:11
Are you using QCompleter or something of your own?
Perhaps easiest to post a short, self-contained program that demonstrates the problem.