in this page https://admhelp.microfocus.com/uft/en/all/AutomationObjectModel/Content/QuickTest~Options~TE~Configure%20TE%20Options_E.html there is an example on how to set TE options.
Set qtTeOptions = qtApp.Options.TE
returns an error. This is caused because no test has been created or opened and in the tools > Options... > GUI Test tab there isn't the Terminal Emulator entry.
So to avoid this problem you have to start a new test and then create the qtTeOptions object.
This is the piece of code that you should add before the instruction above:
Hope this could help.