Make Qt example compatible with Qt < 5.3