.h里定义了如下的
private:
void iniConnect();
private slots:
void do_all();
.cpp里实现为下面
UpdatePage::UpdatePage(QWidget *parent)
: QWidget(parent)
{
iniStatus();
iniConnect();
}
void UpdatePage::iniConnect()
{
connect(allRadioBtn,SIGNAL(toggled()),this,SLOT(do_all()));
}
void UpdatePage::iniStatus()
{
QLineEdit *ip1 = new QLineEdit(tr("0"));
}
void UpdatePage::do_all()
{
ip1->setText("192");
}
以上是关键代码 问题应该就出在这部分
每次编译可以通过 运行就提示如下
make debug
make -f Makefile.Debug
make[1]: Entering directory `/root/Desktop/xxaq/qt/configdialog'
make[1]: Nothing to be done for `first'.
make[1]: Leaving directory `/root/Desktop/xxaq/qt/configdialog'
注释掉iniConect();后就可以正常运行,百度谷歌很久也没有答案。。。希望好心人予以解答 谢了