C++ GUI Qt4
编程 (第二版)中的2.3快速设计对话框实例,我的代码和书上一样,为什么会出现如下错误,本人新手,请大家多多指教,谢谢!
D:\gotocell\gotocelldialog.h:7: 错误:expected class-name before '{' token
D:\gotocell\gotocelldialog.cpp:-1: In constructor 'GoToCellDialog::GoToCellDialog(QWidget*)':
D:\gotocell\gotocelldialog.cpp:8: 错误:'setupUi' was not declared in this scope
D:\gotocell\gotocelldialog.cpp:11: 错误:'lineEdit' was not declared in this scope
D:\gotocell\gotocelldialog.cpp:13: 错误:'okButton' was not declared in this scope
D:\gotocell\gotocelldialog.cpp:14: 错误:'cancelButton' was not declared in this scope
D:\gotocell\gotocelldialog.cpp:-1: In member function 'void GoToCellDialog::on_lineEdit_textChanged()':
D:\gotocell\gotocelldialog.cpp:19: 错误:'okButton' was not declared in this scope
D:\gotocell\gotocelldialog.cpp:19: 错误:'lineEdit' was not declared in this scope