How does one access this property to find out if the network is available?
networkAccessible : NetworkAccessibility
This property holds whether the network is currently accessible via this network access manager.
How does one access this property to find out if the network is available?
networkAccessible : NetworkAccessibility
This property holds whether the network is currently accessible via this network access manager.
hi,
did u check the doc,
hope it helpsenum QNetworkAccessManager::NetworkAccessibility
Indicates whether the network is accessible via this network access manager.
Constant Value Description
QNetworkAccessManager::UnknownAccessibility -1 The network accessibility cannot be determined.
QNetworkAccessManager::NotAccessible 0 The network is not currently accessible, either because there is currently no network coverage or network access has been explicitly disabled by a call to setNetworkAccessible().
QNetworkAccessManager::Accessible 1 The network is accessible.
Bala
Thanks Bala, yes, I checked the doc. My question was what syntax to use to get the value of the property.
hi,
im not sure this will help or not , but pls look this file,
qnetworkaccessmanager.cpp line no : 1337
Qt Code:
if (networkAccessible == QNetworkAccessManager::NotAccessible) emit q->networkAccessibleChanged(QNetworkAccessManager::NotAccessible); else emit q->networkAccessibleChanged(QNetworkAccessManager::UnknownAccessibility); return;To copy to clipboard, switch view to plain text mode
hope it helps
Bala
Bookmarks