Qt type size
#include <QString> #include <QTextStream> int main() { QTextStream cout(stdout); char* charp = array1; QString qstring = "This is a unicode QString." ; Q_ASSERT (sizeof(i) == sizeof(int)); cout << " c type sizes: \n"; cout << " qt type sizes: \n"; cout << "sizeof(qstring) = " << sizeof(qstring) << endl; cout << "sizeof(qint32) = " << sizeof (qint32) << "\n"; cout << "sizeof(qint64) = " << sizeof(qint64) << '\n'; cout << "sizeof(qchar) = " << sizeof (QChar) << endl; cout << "qstring.length() = " << qstring.length() << endl; return 0; }