方便快捷地使用QDialog显示小对话框
摘要:
QDialog dlg(this); QLabel *label = new QLabel("名称:"); QLineEdit *lineEdit = new QLineEdit(); label->setBuddy(lineEdit); QDialogButtonBox *buttonBox = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel); connect(buttonBox, SIGNAL(accepted()), &dlg, ... 阅读全文
posted @ 2013-03-25 22:18 zuoc 阅读(523) 评论(0) 推荐(0) 编辑