[Development] Why does QFlag exist? (Not QFlags)

Thiago Macieira thiago.macieira at intel.com
Thu Sep 19 17:23:19 CEST 2024


On Thursday 19 September 2024 08:07:19 GMT-7 Thiago Macieira wrote:
> On Thursday 19 September 2024 01:11:54 GMT-7 Halla Rempt wrote:
> > Who knows whether anyone is using it? There are zillions of projects using
> > Qt out in the world, but the people developing Qt keep assuming that
> > "using
> > Qt" means using Qt inside Qt, as if the entire platform solely exists for
> > building Qt on top of it. Like when the OpenGL QtPainter class was treated
> > like a failed experiment for making QWidgets paint faster, even though it
> > was public API and used in the real world.
> 
> I'm not assuming it's all of Qt. But it is the most readily available source
> of Qt-using code I have, as I don't build KDE content myself any more.

Oh, I forgot to say that Ivan convinced me to add a compatibility layer for 
32-bit flags such that you can return int or unsigned from your property getter 
and it will continue to work.

But:
a) it will warn
b) it will be removed in 7.0
c) it will not work for other flag sizes

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCAI Platform & System Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20240919/7229a0f2/attachment-0001.bin>


More information about the Development mailing list