在Qt中使用lambda表达式,编译阶段出错
error: ‘‘this‘‘ cannot be implicitly captured in this context‘
提示捕捉不到this,
将代码
[](){}
加上 this 或者 = 即可
[this](){}
[=](){}
在Qt中使用lambda表达式,编译阶段出错
error: ‘‘this‘‘ cannot be implicitly captured in this context‘
提示捕捉不到this,
将代码
[](){}
加上 this 或者 = 即可
[this](){}
[=](){}