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. Bearer management : how to set password for WLAN session ?
Forum Updated to NodeBB v4.3 + New Features

Bearer management : how to set password for WLAN session ?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 1.3k 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.
  • B Offline
    B Offline
    Binbin
    wrote on last edited by
    #1

    Hello,

    My Qt application needs to allow the user the select the Wifi access point.
    I ran the Bearer monitor example which seems to provide exactly the features I need ... But :

    • If Windows has stored the WPA key, I'm able to create a session and open it
    • If the WPA key ins't known by the OS, I get the following error : The speficic configuration cannot be used.

    My question is : how does I set the WPA key in the QNetworkConfiguration object so I would be able to connect to the Access Point without having to set the password in Windows?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Binbin
      wrote on last edited by
      #2

      Well, it seems that my first post was a bit wrong.

      I ran in the error "The speficic configuration cannot be used" when the network configuration state is "Undefined".
      This mean I haven't set it up with Windows. If I setup it in Windows, the state is "Discovered" and I can open the session.
      If I remove the configuration via Windows wireless networks manager, the state returns to "Undefined"

      Is there any way to setup an "Undefined" configuration using Qt?
      Does I have to use the Windows WLAN API ?

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Binbin
        wrote on last edited by
        #3

        Well, I have to close this topic

        From Qt 5.4 doc :

        "This API does not provide support for management of network configurations themselves. It is up to the platform to provide infrastructure which enables to user to create, edit or delete network configurations."

        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