Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QtWebKit: Retrieving Connected Wifi Name in Ubuntu
Forum Updated to NodeBB v4.3 + New Features

QtWebKit: Retrieving Connected Wifi Name in Ubuntu

Scheduled Pinned Locked Moved Unsolved Qt WebKit
1 Posts 1 Posters 259 Views
  • 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.
  • A Offline
    A Offline
    anshah
    wrote on 23 Sept 2019, 06:40 last edited by
    #1

    I'm using Ubuntu 18.04.

    How do I retrieve the name of the WiFi that the system is connected to. So far I'm querying with the following but it is returning interface names instead of Wifi names:

        QNetworkConfigurationManager nwkMgr;
        QList<QNetworkConfiguration> nwkCnfList = nwkMgr.allConfigurations();
        for(const QNetworkConfiguration &ncnf : nwkCnfList)
        {
            qDebug() << ncnf.name() << ncnf.bearerType();
            if (ncnf.bearerType() == QNetworkConfiguration::BearerWLAN)
            {
               // would like to detect WiFi here
               qDebug() << "WiFi:" << ncnf.name();
            }
        }
    

    This lists the interfaces:

    "Wired connection 1" 1
    "ens33" 1
    

    How can I get the NAME of the Wifi?

    1 Reply Last reply
    0

    1/1

    23 Sept 2019, 06:40

    • Login

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