[Development] RFC: Improved Q_ENUM

Dan Leinir Turthra Jensen admin at leinir.dk
Tue Dec 16 10:17:39 CET 2014


On Tuesday 16 Dec 2014 09:50:04 André Somers wrote:
> Dmitry Volosnykh schreef op 16-12-2014 09:35:
> > While I cannot come up with direct application of toString() feature
> > in the projects I am involved in by the moment (except for debugging),
> > I really like it, and remember myself being in a need in such features
> > some time ago. So, me also would like to thank you, Olivier, for the
> > job you've done. I am sure many people will find it handy. Bits like
> > "It is automatically registered as a QMetaType and you do not need
> > Q_REGISTER_METATYPE anymore" are what makes Qt more comfortable to use.
> 
> We use it for things like settings and serialization, so yes, it is
> useful to have.
> 
> André

  We use Q_ENUMS in Gluon to extract and expose enums in the editor UI, and 
this will, certainly, make that code much more pleasant to read. Very glad to 
see this, very shiny! :)

-- 
..Dan // Leinir..
http://leinir.dk/

                          Co-
                            existence
                          or no
                            existence

                          - Piet Hein



More information about the Development mailing list