The relevant classes/functions in Qt hand DNS resolution off to the operating system. If your operating system implements DoH then you have that support, otherwise you do not. As I understand it, Apple's iOS 14 and macOS 11 and Windows 11 have the support.