Header.h in qml files
I was wondering if it is possible and meaningful to include C++ header in qml.
I'm speaking about Header files with #define declarations.
So I can access definition from C++ and Qml.
Thanks for help.
No, it doesn't work like that. There is a whole section in the documentation about interfacing C++ and QML code (in both directions) in the Qt documentation though.
Usually the Qt Quick files are not run through the C preprocessor, so its statements like #ifdef, #include, etc. are not evaluated.
I used another approach to realize this.