Search
 
SCRIPT & CODE EXAMPLE
 

CPP

get ascii value of qchar

QString test("test");
QChar c = test.at(0);
int v_latin = c.toLatin1(); // for QT > 5
int v_ascii = c.toAscii(); // for QT <= 5 [DEPRECATED]
Comment

PREVIOUS NEXT
Code Example
Cpp :: c++ nth substr 
Cpp :: c++ index of nth occurence 
Cpp :: can you chnage the address of a pointer 
Cpp :: file handling 
Cpp :: C++ sqlite open file in other directory 
Cpp :: c++ dictionary 
Cpp :: gestd::getline with wstring 
Cpp :: input pdf latex 
Cpp :: modf() c++ 
Cpp :: prints all the keys and values in a map c++ 
Cpp :: string to char array c++ 
Cpp :: reverse an array using pointers in c++ 
Cpp :: c++ program to add two numbers using function 
Cpp :: remove () not working c++ 
Cpp :: number to binary string c++ 
Cpp :: how to print text on C++ 
Cpp :: find character in string c++ 
Cpp :: how to make crypto 
Cpp :: how to print fixed places after decimal point in c++ 
Cpp :: findung the mode in c++ 
Cpp :: integer type validation c++ 
Cpp :: c++ rand 
Cpp :: malloc in c++ 
Cpp :: how to clear console c++ 
Cpp :: c++ reverse integer 
Cpp :: reverse c++ 
Cpp :: data types ranges c++ 
Cpp :: c++ int main() 
Cpp :: change integer to string c++ 
Cpp :: string iterator in c++ 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =