how it works in qt5 is a mystery to me