I have this code in the method
QTimer::singleShot(ui->spinBox->value(), &loop, SLOT(quit())); The program starts successfully, works. But when I call a method with this string, I get an exception.

Actually a question. How to transfer value from a spinbox as a parameter for a method?