making the QNetworkFactory settable. No reason to have a factory if you cannot set it (I think).
Not very beautiful (contains the ignoble null check since I cannot first sort out the configuration and then call the correct
constructor, since the constructor call needs to be first).