Change connect() to Qt5 for the client