I know this is a very basic question but sometimes it happens that you loose your basic concept 🙂
Tried Goggling but not enough support on that too.
I am using predefined library from one of our device owner. They have a declaration as :
unsigned char FamilySerialNum[0][8]
This variable gets the serial number of the device in hexadecimal. Now i am using this library in Qt to display the serial number in QLineEdit. For that I need to convert it to QString.
Tried using QString::UTF8, strcpy(), sprintf() etc. but getting garbage data.
So can anyone suggest me some way to get it done.
Hello Try the function below…