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 timeout and request time
Forum Update on Monday, May 27th 2025

QNetworkAccessManager timeout and request time

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 6.6k Views
  • 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.
  • VolebabV Offline
    VolebabV Offline
    Volebab
    wrote on last edited by
    #1

    How to set a timeout for QNetworkAccessManager and also how to know how long a request took in microseconds?

    1 Reply Last reply
    0
    • Ni.SumiN Offline
      Ni.SumiN Offline
      Ni.Sumi
      wrote on last edited by
      #2

      Hello @0volebab ,

      AFAIK , timeout depends on the OS. Qt just asks the OS resolver fro the given IP address. OS resolver will send the request and wait for the request until the answer comes back. Seems you can also set timer to abort() the connection with startup timer in your application. I found an example..just try it.

      http://stackoverflow.com/questions/13207493/qnetworkreply-and-qnetworkaccessmanager-timeout-in-http-request

      1 Reply Last reply
      2

      • Login

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