How to nicely “cast” qint64 to int for QProgressBar

前端 未结 2 760
忘了有多久
忘了有多久 2021-01-19 02:58

I\'m playing around with QFtp (yes .. I know) and all works well.

Using code from their own example(s) as a guideline.

http://doc.qt.io/archives/qt-4.7/netwo

2条回答
  •  心在旅途
    2021-01-19 03:31

    Set your progress bar to a range of 0-100, and display the percentage of bytes read instead of trying to set the absolute value.

提交回复
热议问题