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
By signing up, you consent to Felgo processing your data & contacting you to fulfill your request. For more information on how we are committed to protecting & respecting your privacy, please review our privacy policy.
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: