[Qt-interest] Why doesn't exist a QMetaObject::enumerator(const char*)?

Thiago Macieira thiago.macieira at trolltech.com
Mon Jan 5 13:36:16 CET 2009


Jesús Fernández wrote:
>Hi,
>
>I think it will be great if you can insert into the QMetaObject class
>an overload of the enumerator function that gets the name of the
>enumeration as parameter.

There's no overload for methods, properties or classinfo like that. 
Besides, QMetaObject has no way of returning failure in enumerator(int), 
so it's up to you to make sure it exists when calling indexOfEnumerator.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Software Engineer - Nokia, Qt Software
  Qt Software is hiring - ask me
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090105/e747ec22/attachment.bin 


More information about the Qt-interest-old mailing list