I remember reading somewhere that Qt guarantees the size of some data types on supported platforms. Is it that int
will be at least 32 bits everywhere, and qint32
will be exactly 32 bits everywhere? Or something else?
C++ guarantees that int
will be at least 16 bits, and some Qt structures like QRect
and QPoint
use int
internally. I'm developing an application where 32 bits is needed with those types, and I don't want to have to duplicate their functionality so I can use a larger type.