add qt operation & fix some bug