Hi can anyone help me to convert LPTSTR to QString
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will see in the docs that Qstring provides static function to convert from both ascii and Unicode strings:
ascii, int len = -1 )
chars, int len = -1 )
int len = -1 )
local8Bit, int len = -1 )
short * str )
Check whether you are using ascii or unicode and pick your poison.