我用QT Designer 做一个dialog
有label, lineEdit,okButton,cancelButton.
其中OKBUTTON 的ENABLE属性植为FALSE,DEFAULT植为
TRUE.
双击DIALOG的背景,编辑如下;
void GoToCellDialog::enableOKButton()
{
okButton->SETenabled(lineEdit->hasAcceptableInput());
}
dialog预览时,在lineEdit中输入了文本后,OK键还是灰色,无法执行.为什么????
[ 此贴被XChinux在2005-11-14 20:31重新编辑 ]