Qt5-如何在Windows中使用WPA2(用户名和密码)连接到wifi

时间:2019-07-08 17:31:19

标签: c++ qt qt5

我需要在Windows中的Qt5中开发代码,以连接到具有WPA2-Enterprise保护功能的WIFI。我正在使用QNetworkSession连接到无加密WIFI路由器。请帮助我。

for (auto &x : netcfgList)
    {
        if (x.bearerType() == QNetworkConfiguration::BearerWLAN)
        {
            if(x.name() == "XXX-wpa2"){
                cfg = x;

                session = new QNetworkSession(cfg, this);
                session->open();

            }
        }
    }

0 个答案:

没有答案