QLineEdit Question
-
I found that QLineEdit using "Enter" will become strange.
e.g
have tow Controls , QLineEdit and QPushButton
in QPushButton's slot add code:
printf("question\r\n"); //add include: #include "stdio.h"When the focus in “Enter”, will trigger a button events, print output “question”
i use os is ubuntu 10 ,qt version is 4.8
Why???
-
ps:first put control QlineEdit
-
solve
set Properties autoDefault false -
Please mark the thread as solved :)