How to get around bug with qmlRegisterSingletonType
qmlRegsiterSingletonType seems to be broken with Qt 5.9.0 The following was working with earlier prereleases of Qt 5.9
qmlRegisterSingletonType(url, uri, 1, 0, "theme");
Keep getting run time errors that theme is undefined. It was working again with a version of Qt 5.9.1 in git but seems to have regressed as now it is broken again with the latest Qt.5.9.1 (git). Is there another way I can register my theme. Is there a mistake here ?
An help appreciated.
Did you already check the bug report system about that matter ?
QML type names should start with a capital letter. Try calling it
Sorry for the late reply. J-P you humbled me with that solution. Lesson learned - use capital letters for types. Could have sworn I wasn't using caps before and it worked. But anyway it is working now.
Thanks to all who replied