Qt 产生随机数 QString MainWindow::generateRandomNumber(){ qsrand(QTime(0,0,0).msecsTo(QTime::currentTime())); int test = qrand() % 90 + 10; float value = test / 10.0; return QString::number(value)... Qt 2023-12-14 45 点赞 0 评论 68 浏览