now compatible to qt5