porting to Qt 5