Qt 6.12 LTS is out! See what's new in the release
blog
Header.h in qml files
QML and Qt Quick
4
Posts
3
Posters
4.7k
Views
1
Watching
-
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.
-
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.