> On 3 Oct 2024, at 17:07, Phil Thompson via Development > <development@qt-project.org> wrote: > > On 03/10/2024 15:44, Thiago Macieira wrote: >> On Thursday 3 October 2024 05:06:08 GMT-7 Phil Thompson via Development >> wrote: >>> Yes, that's the change - commenting out the new test fixes the problem. >>> I am dynamically building the meta-object. You don't really build an >>> enum, you just provide a description of it to the meta-object. It would >>> be nice to be able to register an enum with the meta-type system >>> dynamically. >> Or you can set the EnumOrFlag flag in the QMetaProperty flags field to >> force the >> constructor to search. > > Sorry, can you be more specific? I can't see how to do it given the private > nature of the flags. > > Phil Hey Phil, How do you generate a dynamic meta object without using private APIs? Do you use QMetaObjectBuilder (which is private), or do you generate the tables and arrays by hand? If you use QMetaObjectBuilder, then QMetaPropertyBuilder::setEnumOrFlag would be the way to go. Volker -- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development
Re: [Development] Changed enum property behaviour in Qt v6.8
Volker Hilsheimer via Development Thu, 03 Oct 2024 08:32:01 -0700
- [Development] Changed enum property beha... Phil Thompson via Development
- Re: [Development] Changed enum prop... MÃ¥rten Nordheim via Development
- Re: [Development] Changed enum ... Phil Thompson via Development
- Re: [Development] Changed e... Thiago Macieira
- Re: [Development] Chang... Phil Thompson via Development
- Re: [Development] ... Volker Hilsheimer via Development
- Re: [Developme... Phil Thompson via Development
- Re: [Devel... Fabian Kosmale via Development
- Re: [Devel... Phil Thompson via Development
- Re: [Devel... Fabian Kosmale via Development
- Re: [Devel... Phil Thompson via Development
- Re: [Devel... Thiago Macieira
- Re: [Devel... Phil Thompson via Development
- Re: [Devel... Thiago Macieira
- Re: [Devel... Phil Thompson via Development
- Re: [Devel... Thiago Macieira