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. Find user-friendly name in Internet connection to Raspberry PI?
Forum Updated to NodeBB v4.3 + New Features

Find user-friendly name in Internet connection to Raspberry PI?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 232 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.
  • S Offline
    S Offline
    Saeed_Nowroozi
    wrote on last edited by
    #1

    Hi all,
    I write a code to show connection network to raspberry PI, but result is not correct. code works good in Ubuntu 14.04 but in Window 7 and Raspberry PI do not show name connections. I used QNetworkConfiguration::name().

    QNetworkConfigurationManager ncm;
    netcfgList = ncm.allConfigurations();
    WiFisList.clear();

    for (auto &x : netcfgList)
    {
      qDebug() << x.name();
    

    // if (x.bearerType() == QNetworkConfiguration::BearerEthernet)
    // {
    // if(x.name() == "")
    // // WiFisList << "Unknown(Other Network)";
    // qDebug() <<"Unknown(Other Network)";
    // else

    // qDebug() << x.name(); //WiFisList << x.name();

    // // qDebug() << x.name();
    // }

    }   
    

    Result in Raspberry PI, How should I change these names to a user-friendly name?
    "eth0"
    "wlan0"

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Kind of names are you thinking about ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Kind of names are you thinking about ?

        S Offline
        S Offline
        Saeed_Nowroozi
        wrote on last edited by
        #3

        @SGaist The name we give to Internet communications. For example, my wireless connections name.

        Capture-internet.PNG

        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