I found that QLineEdit using "Enter" will become strange.
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
ps：first put control QlineEdit
set Properties autoDefault false
Please mark the thread as solved :)