Bonjour,

J'aimerai savoir comment convertir exactement un QByteArray en int ou Uint...

voila mon code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
 
QByteArray test;
test[0] = 0x00;
test[1] = 0x00;
test[2] = 0x55;
test[3] = 0x3f;
quint32 toto = (quint32)(SwapQByteArray(_AmsPortArray).toUInt());
Le problémé c'est que quand je fais ca, toto = 0, loool

aidez moi svp???