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.setNetworkAccessible() is obsolete in Qt 5.15?
Qt 6.11 is out! See what's new in the release blog

QNetworkAccessManager.setNetworkAccessible() is obsolete in Qt 5.15?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 713 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.
  • D Offline
    D Offline
    derun
    wrote on last edited by derun
    #1

    in Qt 5.15, The following members(include setNetworkAccessible()) of class QNetworkAccessManager are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
    But what is the new code?anyone know that?

    JKSHJ 1 Reply Last reply
    0
    • D derun

      in Qt 5.15, The following members(include setNetworkAccessible()) of class QNetworkAccessManager are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
      But what is the new code?anyone know that?

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      @derun said in QNetworkAccessManager.setNetworkAccessible() is obsolete in Qt 5.15?:

      in Qt 5.15, The following members(include setNetworkAccessible()) of class QNetworkAccessManager are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
      But what is the new code?anyone know that?

      Hi, and welcome!

      Can you please describe your use-case in more detail? What is your goal for calling QNetworkAccessManager::setNetworkAccessible() ?

      The function was removed in Qt 6 and not replaced: https://doc.qt.io/qt-6/network-changes-qt6.html#bearer-management-is-removed

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      D 1 Reply Last reply
      0
      • JKSHJ JKSH

        @derun said in QNetworkAccessManager.setNetworkAccessible() is obsolete in Qt 5.15?:

        in Qt 5.15, The following members(include setNetworkAccessible()) of class QNetworkAccessManager are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
        But what is the new code?anyone know that?

        Hi, and welcome!

        Can you please describe your use-case in more detail? What is your goal for calling QNetworkAccessManager::setNetworkAccessible() ?

        The function was removed in Qt 6 and not replaced: https://doc.qt.io/qt-6/network-changes-qt6.html#bearer-management-is-removed

        D Offline
        D Offline
        derun
        wrote on last edited by derun
        #3

        @JKSH When the system can access the LAN but cannot access the Internet, my http request in LAN will occurred an error "Network access is disabled",and i found call setNetworkAccessible(QNetworkAccessManager::UnknownAccessibility) can solve this problem.

        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