Qt Simulator Manual 1.2.0

Using Bearer Management

The Bearer Management API controls the connectivity state of the system and allows programs to start or stop interfaces or roam transparently between access points.

The API was introduced in Qt Mobility 1.0.0 and is included in Qt 4.7. Qt Simulator uses Qt 4.7, and therefore, you can use either the Qt 4.7 Network module or the Qt Mobility 1.0.0 Bearer Management module in applications targeting the Qt Simulator.

For now we recommend using the Qt Mobility module by adding

 CONFIG += mobility
 MOBILITY += bearer

to the application pro file. This way, the application will compile for the Qt Simulator as well as current devices.

The second way requires at least Qt 4.7 and is thus unavailable on current devices:

 QT += network
X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();