Search code examples
qmlwifi

Connect to WiFi from QML


Is it possible to connect to WiFi from QML (without writing some C++ code)?

According to this article it is possible. And this article starts right away with import B2Qt.Wifi 1.0, implying that such module is available, but I get an error module "B2Qt.Wifi" is not installed.

I have a commercial Qt 5.7 and I installed all the components, so it should be there. However, there is no module with such name in the entire installation directory.

I tried to do it on Windows and Linux with the same result.

Maybe I need to download this module from somewhere else? That would be weird though.


Solution

  • B2Qt means 'Boot to Qt'. It's for the devices where you prepare an image and then flash it onto the device.

    So, it uses a specific network manager that is built into that image. And there is a B2Qt.Wifi module to configure that specific network manager.

    I think it won't work with the network managers on desktop Linux, Mac or Windows.