static_cast 使用时间:2023-03-09 01:37:40 static_cast 用于基本类型转换,入int转double: int distanceThreshold = 4; double val = static_cast<qreal>(distanceThreshold + 1);