added qt example code and implemented some more TL functions