标签:必须 term button read 编译 bsp this amp nec
connect(ui->pushButton, &QPushButton::clicked, [=](){ //注意:若在lambda中访问类成员变量,[]号里面必须有=或&,否则编译不过,报错this指针错误。
if (m_td != NULL)
{
m_td->terminate();
m_td->quit();
m_td->wait();
delete m_td;
m_td = NULL;
}
m_td = new mythread;
m_td->str1 = ui->pushButton->text();
m_td->start();
});
标签:必须 term button read 编译 bsp this amp nec
原文地址:https://www.cnblogs.com/whwywzhj/p/13440888.html