[Development] Why does QFlag exist? (Not QFlags)
Thiago Macieira
thiago.macieira at intel.com
Tue Sep 10 19:33:32 CEST 2024
On Tuesday 10 September 2024 10:12:10 GMT-7 Andreas Aardal Hanssen wrote:
> Tir 10 sep 2024 kl. 18:55 skrev Thiago Macieira:
> > Any objections?
>
> Please don’t break source compatibility?
It does appear that a Q_PROPERTY of a Q_FLAG whose getter and setter operate
on integers still compiles, but it does not for a Q_ENUM. That was broken some
time in early 4.x, probably before 4.0, in that series of rewrites the commit
that Aavit linked to belongs to.
Is this supported? I didn't know about it until yesterday. I doubt anyone is
using it, though it's possible some code carried over from Qt 3 was left
unmodified like that.
It might be possible to keep source compatibility with this, with some effort.
Do we want to?
--
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/20240910/8f3e8f78/attachment.bin>
More information about the Development
mailing list