Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi All
I need to pull the value of a QSpinbox, set it to a double variable - but to one decimal place.
I have set the variable:
double decimal = ui->manualRate->value();
I am wondering how I now set this double to one decimal place?
Thanks
J
decimal = static_cast<double>(qRound(decimal*10.0))/10.0