我要实现From1与frame5(另外一个窗口)间的切换,通过点击From1中的一个pushbutton来实现:
.....
connect( PushButton3, SIGNAL( clicked() ), this, SLOT( clickedbutton() ) );
......
void Form1::clickedbutton()
{
frame5 f;//声明窗口5
f.show();//显示窗口5
hide();//隐藏本窗口
}
但是最后出错信息为:
`frame5' undeclared (first use this function)
这是怎么回事?
如何声明frame5?
[ 此贴被XChinux在2006-10-12 20:34重新编辑 ]