get Wifi SSID with QT 6.5
-
Hello
With the removal of QNetworkConfigurationManager, how can we found the SSID from QT when we are connected by Wifi ? II try to use QNetworkInterface, but I cannot found the SSID.
Thanks in advance
LaurentAs written here
(https://doc.qt.io/QtDeviceUtilities-6.2/qnetworksettingsmanager.html#details)manager = new QNetworkSettingsManager(this); QObject::connect(manager, &QNetworkSettingsManager::servicesChanged, this, &MainWindow::servicesChanged); // ############################ void WifiHandler::servicesChanged() { QList<QNetworkSettingsService*> services = qobject_cast<QNetworkSettingsServiceModel*>(manager->services()->sourceModel())->getModel(); for (const auto &service : services) { qDebug() << service->name(); } }where
service->name()is your SSID when using wireless network interfaces -
Hello,
I Think QNetworkSettingsManager is not the solution as is only working on a specific target and not on windows or Linux.why should this not work on Windows or Linux?!