Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QNetworkAccessManager::networkAccessible() trigger
Forum Updated to NodeBB v4.3 + New Features

QNetworkAccessManager::networkAccessible() trigger

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    trpropst
    wrote on last edited by
    #1

    I've written some code to query the networkAccessible state and on Windows, it is always QNetworkAccessManager::UnknownAccessibility even if the associated QNetworkAccessManager object is creating successful connections (or even if I disable all network interfaces on the system). I've looked through the QNetworkAccessManager code but can't figure out how this is set. Does anyone know what the OS must report for this to work? I realize that you can also explicitly set the state for a given object but that is not what I'm interested in.

    Thanks,
    Tom

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rich
      wrote on last edited by
      #2

      Looking at the code it appears to be based on the bearer management apis like QNetworkConfiguration. See http://qt.gitorious.org/qt/qt/blobs/4.7/src/network/access/qnetworkaccessmanager.cpp#1352

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved