[Development] [QML] Assigning ints to enumeration properties

Aleix Pol aleixpol at kde.org
Wed Mar 6 01:29:30 CET 2013

On Tue, Mar 5, 2013 at 10:53 PM, Laszlo Papp <lpapp at kde.org> wrote:

> On Tue, Mar 5, 2013 at 9:34 PM, Alan Alpert <416365416c at gmail.com> wrote:
>> -Matches expectations from C++ users a little better
> What do you mean by this? I personally prefer that the enum is getting
> strongly typed with C++11. On the conrary, I have always used int enums in
> QML applications.
> Laszlo
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
Well, can you actually cast in QML/JS? That's what you need to do (or well,
end up doing) many times in C++.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130306/b5d78a2f/attachment.html>

More information about the Development mailing list