updated connect() to qt5 format