[Development] Another integer typedef OR how to prepare for 64-bit in Qt 5

Bernhard Lindner private at bernhard-lindner.de
Tue Dec 4 00:33:06 CET 2018


Hi!

> > > Not yet. Yes, it will be a huge number.
> > 
> > Which compels the questions:
> > 
> > 1) is it worth it?
> 
> No. 

What about those people who want (or must) implement clean interfaces in their code using
standard size_t?

Even if the number of objects/sizes/counts is usually below 2^31, it still is a pain to
either suffer from numerous static analysis warnings (when implicitly converting size_t
and int) or from implementing numerous casts.

In my book it would be a BIG improvement if the Qt interfaces would cleanly integrate into
compliant environments without nasty workarounds.

Qt's int-loaded API is probably not the most burning pain when using Qt but definitely the
most persisting one (for me).

-- 
Best Regards, 
Bernhard




More information about the Development mailing list