Custom Compilerwarnings in QML
-
Hello Experts,
Iám working on a big Projekt using QML and QtQuick.
On other Projects and other Languages, I had the possibillity to throw custom compiler warnings to mark some code for refactoring, depreciated, untested etc. Compiling the code, this warnings appears.
Is there any possibility to do this also in QML? -
@xela
not that i am aware of.
Also doesn't make much sense, since in general QML is not compiled (to be correct it is compiled when it is needed -JIT
)You can use
console.warning()
to throw a runtime message though. -
In this case, it really do not make sense.
So I have to stay with my solution. I marked with Comments like "//@Refactoring needed" and have to search the whole qml files for this phrases.
Not the best but at the moment under this circumstances the best one for me...Anyway, thank you"!
-
Qt Creator can show you comments beginning with
TODO
,FIXME
,NOTE
,BUG
orWARNING
in the "To-Do Entries" bottom panel :