• 5589阅读
  • 3回复

QLineEdit 默认回车可以打开对话框么 [复制链接]

上一主题 下一主题
离线elainejin
 
只看楼主 倒序阅读 楼主  发表于: 2010-04-04
我没有对QLineEdit 进行回车发送信号的预设,但是在debug后,却发现在lineedit中输入数据后回车会自动弹出加载图像的对话框,并且能够成功加载到我用Qbutton设定好的对话框内~查了很久都没有明白是什么原因,希望大家能够帮帮忙~
离线午小夜

只看该作者 1楼 发表于: 2010-04-04
void QLineEdit::returnPressed ()   [signal]
This signal is emitted when the Return or Enter key is pressed. Note that if there is a validator() or inputMask() set on the line edit, the returnPressed() signal will only be emitted if the input follows the inputMask() and the validator() returns QValidator::Acceptable.
[操作系统版本]  Windows XP;Linux Ubuntu;Linux Fedora;
[Qt SDK版本]    4.7.0
[SDK 发布日期]  2010.05
[IDE(集成开发环境)] QtCreator
个人网页:http://hi.baidu.com/午小夜
學歷:Royal Jalidon
离线elainejin
只看该作者 2楼 发表于: 2010-04-05
Thanks~~我去试下~
离线elainejin
只看该作者 3楼 发表于: 2010-04-05
Thanks~~我去试下~
快速回复
限100 字节
 
上一个 下一个