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. How to get real time network speed?
Qt 6.11 is out! See what's new in the release blog

How to get real time network speed?

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 6 Posters 2.6k Views 2 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.
  • small_birdS Offline
    small_birdS Offline
    small_bird
    wrote on last edited by
    #1

    Hello everyone, my question is as the topic. Could anyone help me? Thanks in advance!

    jsulmJ joeQJ 2 Replies Last reply
    0
    • small_birdS small_bird

      Hello everyone, my question is as the topic. Could anyone help me? Thanks in advance!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @small_bird What does "real time network speed" mean? Network cannot not be real time.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      small_birdS 1 Reply Last reply
      3
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        you mean the actual transfer speed of a network ?
        Often one will download a file and see how many mb/s.

        1 Reply Last reply
        4
        • jsulmJ jsulm

          @small_bird What does "real time network speed" mean? Network cannot not be real time.

          small_birdS Offline
          small_birdS Offline
          small_bird
          wrote on last edited by small_bird
          #4

          @jsulm I mean that we can see the download and upload speed at any time, as the following picture:

               up:   xxxx kb/s
          down:    xxxx kb/s
          
          J.HilkJ 1 Reply Last reply
          0
          • small_birdS small_bird

            @jsulm I mean that we can see the download and upload speed at any time, as the following picture:

                 up:   xxxx kb/s
            down:    xxxx kb/s
            
            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #5

            @small_bird

            Relatively simple.
            you hock on the downloadProgress(qint64 bytesReceived, qint64 bytesTotal) and uploadProgress(qint64 bytesSent, qint64 bytesTotal) of the qnetworkreply

            norm to seconds (time between signals / delta bytes Sent) = Bytes per Second up/download speed,


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            small_birdS 1 Reply Last reply
            10
            • J.HilkJ J.Hilk

              @small_bird

              Relatively simple.
              you hock on the downloadProgress(qint64 bytesReceived, qint64 bytesTotal) and uploadProgress(qint64 bytesSent, qint64 bytesTotal) of the qnetworkreply

              norm to seconds (time between signals / delta bytes Sent) = Bytes per Second up/download speed,

              small_birdS Offline
              small_birdS Offline
              small_bird
              wrote on last edited by
              #6

              @J.Hilk Thanks a lot! I will have a try.

              1 Reply Last reply
              1
              • T Offline
                T Offline
                tsing woo
                wrote on last edited by
                #7

                hello,could you tell me hot to get current net speed on win 10 ?
                I want to creat a app just like your picture presenting.
                thank you !

                mrjjM 1 Reply Last reply
                0
                • T tsing woo

                  hello,could you tell me hot to get current net speed on win 10 ?
                  I want to creat a app just like your picture presenting.
                  thank you !

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @tsing-woo
                  Hi, just like
                  @J-Hilk describes.

                  1 Reply Last reply
                  0
                  • small_birdS small_bird

                    Hello everyone, my question is as the topic. Could anyone help me? Thanks in advance!

                    joeQJ Offline
                    joeQJ Offline
                    joeQ
                    wrote on last edited by
                    #9

                    @small_bird hi,

                    Torrent Example. It may be help you.

                    Just do it!

                    1 Reply Last reply
                    3

                    • Login

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