有两个类 一个是mainthread 一个是mainwindows ,在mainwindows.cpp中写 connect(mythread,SIGNAL(textchanged()),this,SLOT(setslope())),mythread是在mainwindows.h申明的一个变量,信号textchanged())是在mainthread 类中申明的,然后槽函数setslope()是在mainwindows中申明的,主要是做QLineEdit的赋值操作。
运行程序跳出:程序异常错误。不知道哪里有问题,求请教?