Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. get Wifi SSID with QT 6.5
Qt 6.11 is out! See what's new in the release blog

get Wifi SSID with QT 6.5

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    voilier92
    wrote on last edited by
    #1

    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
    Laurent

    Pl45m4P 1 Reply Last reply
    0
    • V voilier92

      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
      Laurent

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @voilier92

      As 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


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      2
      • V Offline
        V Offline
        voilier92
        wrote on last edited by
        #3

        Hello,
        I Think QNetworkSettingsManager is not the solution as is only working on a specific target and not on windows or Linux.

        Pl45m4P 1 Reply Last reply
        0
        • V voilier92

          Hello,
          I Think QNetworkSettingsManager is not the solution as is only working on a specific target and not on windows or Linux.

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @voilier92

          why should this not work on Windows or Linux?!


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          0
          • V Offline
            V Offline
            voilier92
            wrote on last edited by
            #5

            QNetworkSettingsManager is part of Qt Device and :

            Qt Device Utilities C++ Classes
            Qt Device Utilities modules provide classes that are useful for embedded applications.
            
            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved