qt程序在终端中编译出现的问题,各位大佬,请问这怎么解决呢???
clientthread.cpp: In member function ‘void ClientThread::deng_send_work1()’:
clientthread.cpp:360:64: error: no matching function for call to ‘QTimer::singleShot(int, ClientThread*, ClientThread::deng_send_work1()::<lambda()>)’
QTimer::singleShot(5*1000,this,[=](){m_timer0->start(500);});
^
In file included from /usr/include/qt4/QtCore/QTimer:1:0,
from clientthread.h:7,
from clientthread.cpp:1:
/usr/include/qt4/QtCore/qtimer.h:78:17: note: candidate: static void QTimer::singleShot(int, QObject*, const char*)
static void singleShot(int msec, QObject *receiver, const char *member);
^
/usr/include/qt4/QtCore/qtimer.h:78:17: note: no known conversion for argument 3 from ‘ClientThread::deng_send_work1()::<lambda()>’ to ‘const char*’