[Development] Why does QFlag exist? (Not QFlags)
Thiago Macieira
thiago.macieira at intel.com
Wed Sep 11 01:08:35 CEST 2024
On Tuesday 10 September 2024 10:33:32 GMT-7 Thiago Macieira wrote:
> 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.
QGroupBox:
Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment)
Qt::Alignment alignment() const;
void setAlignment(int alignment);
My new code does not break this. But this is one of the cases where moc was no
longer generating integers in the first place, because the property type is not
a local Q_FLAG.
--
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/90ac8d09/attachment.bin>
More information about the Development
mailing list