I am taking a number from a QSpinBox and converting it to Hex using the following line of code
Qt Code:
To copy to clipboard, switch view to plain text mode
I works, giving 0a, or 0b etc. But now I need the hex number in upper case, 0A, 0B etc.....
Simply adding .toUpper(); is not working.
Anyone got a simple fix for this??
Thanks much
I got it to work using
QString number = (QString("%1").arg(ui->spinBox_sens_nbr->value(), 2, 16, QChar('0')).toUpper());
Bookmarks