For anyone else trying to do so, use QMAKE_SUBSTITUTE in your .pro file to convert qmake variables to a .h file, then expose the constants of the .h file to QML in your CPP using standard QML functions
Want to find out if Felgo is a good fit for your company?
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: