NetworkSettingsManager QML Type

A singleton QML type for managing network settings. More...

Import Statement: import QtDeviceUtilities.NetworkSettings 1.0




Detailed Description

There is no need to create an instance of this object. To use it, simply import the QtDeviceUtilities.NetworkSettings module.

Qt Device Utilities WiFi Tutorial demonstrates how you can use NetworkSettingsManager for connecting to WiFi.

Property Documentation

[read-only] interfaces : model

Holds the interface model. A delegate in a view that uses the interfaces model can access the NetworkInterface item with the dataModel role.

See also NetworkInterface.

[read-only] services : model

Holds the service model.

The services list in the model can be controlled with the type property, and NetworkService items can be retrieved with the itemFromRow(int index) method. For example, to select the first available wired network service:

property var service: null
NetworkSettingsManager.services.type = NetworkSettingsType.Wired;
service = NetworkSettingsManager.services.itemFromRow(0);

Available service types:

NetworkSettingsType.WiredWired network
NetworkSettingsType.WifiWifi network
NetworkSettingsType.BluetoothBluetooth network
NetworkSettingsType.UnknownUnknown network type

See also NetworkService.

Signal Documentation

void userAgent.error()

This signal is emitted when the connection failed due to invalid user credentials.

void userAgent.showUserCredentialsInput()

This signal is emitted when user credentials are required for connecting to a Wifi network.

See also userAgent.setPassphrase().

Method Documentation

NetworkService service(string name, int type)

Returns the service with name name and type type.

See also services.

void userAgent.cancelInput()

Cancels the user credentials input request.

void userAgent.setPassphrase(string passphrase)

Sets the passphrase for connecting to a Wifi network.

This method needs to be called in response to receiving a showUserCredentialsInput() signal.

See also userAgent.showUserCredentialsInput().

Available under certain Qt licenses.
Find out more.