[Interest] Qt support for strongly-typed enums

Thiago Macieira thiago.macieira at intel.com
Sat Nov 21 05:46:26 CET 2015


On Saturday 21 November 2015 05:33:23 NoRulez wrote:
> Is this also possible for keys in a QHash for example?

Any type that is default constructible, comparable and for which qHash() works 
can be used as a key.

So, did you declare the qHash function for your enum?
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list