working impl for qt5.0