updated qt sample