Discussion:
[Qt-creator] 4.6.1 still not handling QML enums
Jason H
2018-05-04 18:58:25 UTC
Permalink
I was really looking forward to this release. But was kind of surprised he QML parsing was not included.


Rectangle {
enum CollectionState {
NotAcquired,
Acquiring,
HaveImages
}
}

gives:

"Unexpected token "reserved word""
"Expected token ":"

But is fine when compiled.
Eike Ziller
2018-05-07 06:54:52 UTC
Permalink
Support for user-defined enums in QML went into 4.7.
Post by Jason H
I was really looking forward to this release. But was kind of surprised he QML parsing was not included.
Rectangle {
enum CollectionState {
NotAcquired,
Acquiring,
HaveImages
}
}
"Unexpected token "reserved word""
"Expected token ":"
But is fine when compiled.<Screen Shot 2018-05-04 at 2.56.04 PM.png>_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
--
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
***@qt.io
http://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
Loading...