Convert TCHAR* to QString
qt, qt5, type-conversion
Solution
QString s= (LPSTR)qRecord;
worked. thanks
Problem
How to convert easiest way in Qt? ``` int recordSize = 1000; TCHAR* qRecord = new TCHAR[recordSize]; //here I get data form other function //here I try to display qString() << QString::fromWCharArray(qRecord,recordSize);//gives many ???? printf("%s",qRecord); // this work perfectly ``` I tried with wcstombs, formStdWString nad other but nothing seems to work. Thanks for any help