How do I mock QHostInfo::lookupHost() for unit testing? When I looked for a solution, all I found was someone who just gave up and said: "Unfortunately QHostInfo::lookupHost is a static method, so we can’t mock it." https://github.com/mumble-voip/mumble/pull/3170