Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to read binary data in integer mode in Qt? Qfile's read can only read char
How to read binary data in integer mode in Qt? Qfile's read can only read char

Use QFile and QTextStream to read text files. You can read them line by line. There are many examples on the Internet. After reading a line, call the QString::split function, using = as the separator, to separate the QString variable storing each line into two parts, the front and back parts, and the return value is in a QStringList.

Just convert the front and back parts into the corresponding types according to your requirements, QS...