Minor fixes of qt interface.
Merge pull request #1301 from chaserhkj/qtfix

Minor fixes of qt interface.