I have an int value out of a slider and want to write that value into a label with this expression
ui->label_1->setText(std::to_string(ui->verticalSlider->value()));
but i get this error:
ambiguous call to overloaded function
I think i have to typecast the value, but don't know how.
ui->label_1->setText(std::to_string(static_cast<int>(ui->verticalSlider->value())));
also didn't work.