Make Qt example compatible with Qt < 5.3
Merge pull request #60 from hpicgs/qt52

Make Qt example compatible with Qt < 5.3