[qt] minor optimization