演示如何查找主机名使用 QDnsLookup .
此范例使用 QDnsLookup to demonstrate how to look up a host name and print the results on the command line. As well as how you can use QCommandLineParser 来剖析命令行自变量。
范例工程 @ code.qt.io