Convert from int to hex
-
Hello, i need to convert from int to hex, i find method QByteArray::toHex, but it is dont worke
@lineEdit_7->setText(QString("%1").arg(QVariant(QByteArray(QVariant(c.red()).toByteArray()).toHex()).toString()));@
It is get some number(for example 323535), what do i do wrong?
And how can it be easier to write?
Advance many thanks for your help! -
-
Have a look at "QString::number()":http://doc.qt.nokia.com/4.7/qstring.html#number