Qt basic type data

Qt supports the basic types of int, long, float, long, but in order to unify the uniform length on each platform, typedef is used to define the symbol of the type.
Qt data type Equivalent definition Number of bytes
qint8 signed char 1
qint16 signed short 2
qint32 signed int 4
qint64 long long 8
qlonglong long long 8

quint8             unsigned char             1
quint16         unsigned short            2
quint32         unsigned int             4
quint64         unsigned long long         8
qulonglong         unsigned long long         8

uchar             unsigned char             1
ushort             unsigned short            2
uint            unsigned int            4
ulong            unsigned long             8
qreal            double                    8
qfloat16                                2


The basic library
<QtMath> provides basic mathematical operations.
Log output: qPrintable (), qDebug (), qInfo (), qWarning (), qCritical (), qFatal ().

Published 31 original articles · Like1 · Visitors 1153

Guess you like

Origin blog.csdn.net/quietbxj/article/details/105627892