Add include QtNetwork directive inside WebPage.h.