It would also give that error if $qt (which is a relatively new identifier) doesn't exist. To solve that, just add a local alias to the top of the script:

Code:
alias -l qt { return " $+ $1" }