1. 正确用法 QTimer::singleShot(10 * 1000, this, &A::function);QTimer::singleShot(2000, this, [this]() { // 访问类成员 }); 2. 错误用法 下面两种在多线程,Linux平台会报错 QTimer::singleShot(10 * 1000, this, function); QTimer::singleShot(10 * 1000, this, A::function);