class Thread_showSysInfo : public QThread
{
Q_OBJECT
public:
void run();
signals:
void Finished();
};
SysInfoDlg::SysInfoDlg()
{
connect(showSysInfoThread, SIGNAL(Finished()), this, SLOT(FinishedProcessFunc()));
showSysInfoThread.start();
}
编译的时候出现下列错误……
SysInfoDlg.cpp:386: error: no matching function for call to 'SysInfoDlg::connect(Thread_showSysInfo&, const char [12], SysInfoDlg* const, const char [23])'
/usr/include/QtCore/qobject.h:202: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
/usr/include/QtCore/qobject.h:307: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
明明跟你的例子一样的,晕~
恩,我再看看错在哪了……