Lambda写错了吧?差两个括号,应该是[&](){ fi.write("def"); } ``` language connect(&u, &QUdpSocket::readyRead, [&](){fi.write("def");}); ``` 希望能帮助到你。
阅读量:1
点赞量:3