void QQ::enableLoginButton(const QString &text)
{
loginButton->setEnabled(!text.isEmpty());
}
但是运行却不是我想的这样,运行的时候在password里面输入之后却发生中断,中断处:{
loginButton->setEnabled(!text.isEmpty());
}
程序代码:
bool QWidget::testAttribute_helper(Qt::WidgetAttribute attribute) const
{
Q_D(const QWidget);
const int x = attribute - 8*sizeof(uint);
const int int_off = x / (8*sizeof(uint));
return (d->high_attributes[int_off] & (1<<(x-(int_off*8*sizeof(uint)))));
}
{
Q_D(const QWidget);
const int x = attribute - 8*sizeof(uint);
const int int_off = x / (8*sizeof(uint));
return (d->high_attributes[int_off] & (1<<(x-(int_off*8*sizeof(uint)))));
}