console.log formatting
Unsolved
QML and Qt Quick
-
console.log formatting seems to not work.
console.log("%s treated as a string", myvar)
console.log("%i treated as an int", myvar)output:
Debug, "%s treated as a string 4"
Debug, "%i treated as a string 4" -
Hi @David-Parker:
As documented in Debugging QML Applications - Console API, you must use:
console.log(myvar, "treated as a string")
-
OK thanks. The qt docs strongly imply that QML supports Javascript, but I guess it's a subset.