Answers for "qt can't use ^ operator on qchar"

C++
1

qt can't use ^ operator on qchar

// ^ operator is not defined for QChar, you have to convert it to char first
QChar a = 'x';
char b = a.toLatin1();

char c = b ^ 0x0f;
Posted by: Guest on September-26-2021

Browse Popular Code Answers by Language