Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hey guys,
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.
ok thanks.
I used another approach to realize this.