Horje
qt get hexa value from qstring Code Example
qt get hexa value from qstring
const QString str = QLatin1String("AA110011");
bool ok;
const unsigned int parsedValue = str.toUInt(&ok, 16); //16 because hex is base 16
if (!ok) {
    //Parsing failed, handle error here
}




Cpp

Related
c++ primality test Code Example c++ primality test Code Example
conditional cout in c++ Code Example conditional cout in c++ Code Example
c++ vector decimal to binary Code Example c++ vector decimal to binary Code Example
c++ generate random char Code Example c++ generate random char Code Example
vector unique in c++ Code Example vector unique in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12