Answers for "qchar to char"

C++
1

qchar to char

QString str = "hello grepper"
char letter = str[0].toLatin1(); //letter == 'h'
Posted by: Guest on September-14-2021

Browse Popular Code Answers by Language