我正在使用 Qt 4.7,并且我有一部分带有信号和插槽的代码。它的设置和正常一样,即:
#include <QObject>
//Earlier code...
connect(my_thread, SIGNAL(started()), other_thread, SLOT(process()));
connect(my_thread, SIGNAL(finished()), third_thread, SLOT(some_slot()));
//Later code...
但是,当我构建它时,每个语句都会出现错误,说“C3861:'连接':找不到标识符”有没有人知道为什么会这样?谢谢!