added some qt5 code