[Development] [QML] Assigning ints to enumeration properties
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.
> Development mailing list
> Development at qt-project.org
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...
More information about the Development