我用qtdesigner建立了一个mainwindow,又用qtdesigner建立了几个对话框,现在想从mainwindows中调用对话框,signal-slot对应建好后,在slot函数中调用
Payee dlg(this);
dlg.exec();
总提示错误
error: `Payee' undeclared (first use this function)
MyMoney.ui.h:107: error: (Each undeclared identifier is reported only once for each function it appears in.)
MyMoney.ui.h:107: error: syntax error before `(' token
MyMoney.ui.h:108: error: `dlg' undeclared (first use this function)
我已经试图将Payee的头文件在qtdesigner里加到MyMoney的头文件,实现文件的include里去了,还在前置声明中也加了,但不行,请问怎么解决?谢谢!
[ 此贴被XChinux在2006-02-13 17:19重新编辑 ]