use less error-prone method to link QtNetwork