void SubWeb::checkBoxfrechange(bool ps)
{
if(ps == true)
{
Proper_WIN->setEnabled(true);
}
else if(ps == false)
{
Proper_WIN->setEnabled(false);
}
}
问题在哪里没看出来,最好有全部代码。
不过这个函数实在太复杂了
可以简化一下
{
Proper_WIN->setEnabled(ps);
}
其实上面的槽根本不需要,因为Proper_WIN就有setEnabled槽
connect( checkBoxfre , SIGNAL( clicked(bool)) , Proper_WIN , SLOT(setEnabled (bool)) );