Yeah. Agreed it is bad practice.
But in future, Qt gonna either make the enums available to the objects too or prevent it from compiling. Right now, it can be counted as a “bug”
I come from a Java, Python, PHP background. We usually take such things as granted. Moreover, QML is not a strict typed language.
↧









