[Development] RFC: Improved Q_ENUM

Thiago Macieira thiago.macieira at intel.com
Wed Feb 18 22:53:58 CET 2015

On Wednesday 18 February 2015 12:16:58 Matthew Woehlke wrote:
> > I have not tried QSettings yet, but since it works with QVariant it
> > should 
> > work.
> Sure, I'd expect it to work, also :-). What I meant was, does it get
> written as an integer, or as a string?


It's written as @Variant(<QDataStream serialisation of the type goes here>) 
where the QDataStream serialisation includes the type's name. It also only 
works if you've registered operator<< and operator>> for your type.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Development mailing list