Update qt.py

fixed syntax and typos