Using manual registration with qmlRegisterType (or qmlRegisterUncreatableType) isn't ideal, because Qt Creator can't pick up on it. When using the macros, autocompletion & unknown type warnings in the code disappear.
- Move to using enums to represent the suit & value - This changes the badly named color to more appropriate suit. - Add createDeck static method