createQML() improvements