I was missing the QT += network
I wasted soo much time trying to figure that out. ah well, thanks a lot