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
[Previous: Declaring Qt Mobility APIs] [Next: Testing Applications Using the Qt Mobility Service Framework]