linux 9下 QT3.2
在dialog中创建一个About按钮,点击后显示版本信息,调用的QMessageBox::information,可是每当调用information时都使系统没有反应了,类似与windows的死机,
void QTestDlg::init()
{
m_aboutButton = new QPushButton(tr("About"), this);
m_aboutButton = new QPushButton(tr("About"), this);
connect(m_aboutButton, SIGNAL(clicked()),
this, SLOT(aboutClicked()));
}
void QTestDlg::aboutClicked()
{
QMessageBox::information(this, tr("About"),
tr("Version: 1.0.0"));
}
把information的调用注释掉就可以了,不明白,希望大家指点
[ 此贴被XChinux在2006-12-23 17:53重新编辑 ]