Results 1 to 15 of 15

Thread: QHttp::dataSendProgress transfer speed Kb sec.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QHttp::dataSendProgress transfer speed Kb sec.

    I don't understand the question.

  2. #2
    Join Date
    May 2006
    Posts
    788
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    49
    Thanked 48 Times in 46 Posts

    Default Re: QHttp::dataSendProgress transfer speed Kb sec.

    Quote Originally Posted by wysota View Post
    I don't understand the question.
    How display decimal numer on .arg ....?

    double nummer = .33 ;

    QString("Cent: %1").arg(nummer); /* comming 0 */

    QString str = QString("delta: %1").arg(d, 0, 'E', 3);
    i am confused on E g f..... i can only display decimal point on console app...
    and i like display double nummer = .33 on .arg() ....

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QHttp::dataSendProgress transfer speed Kb sec.

    Are you sure "nummer" is double? Or maybe you're using a comma instead of a dot while initialising the variable?

    The following:
    Qt Code:
    1. #include <QString>
    2. #include <QtDebug>
    3.  
    4. int main(){
    5. qDebug() << QString("Value: %1").arg((double).33);
    6. return 0;
    7. }
    To copy to clipboard, switch view to plain text mode 

    returns:
    "Value: 0.33"

  4. The following user says thank you to wysota for this useful post:

    patrik08 (6th March 2007)

  5. #4
    Join Date
    May 2006
    Posts
    788
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    49
    Thanked 48 Times in 46 Posts

    Default Re: QHttp::dataSendProgress transfer speed Kb sec.

    Quote Originally Posted by wysota View Post
    Are you sure "nummer" is double? Or maybe you're using a comma instead of a dot while initialising the variable?

    The following:
    Qt Code:
    1. #include <QString>
    2. #include <QtDebug>
    3.  
    4. int main(){
    5. qDebug() << QString("Value: %1").arg((double).33);
    6. return 0;
    7. }
    To copy to clipboard, switch view to plain text mode 

    returns:
    is a float speed kbs .... convertet on double the first value .... why? .... on wayting the first second to calculate the speed upload..... to display speed each millisecond break my eyes && compiler... ... and i print only speed each sec. much tanks...

Similar Threads

  1. transfer large files using qsocket
    By vishesh in forum Qt Programming
    Replies: 3
    Last Post: 2nd March 2007, 15:40
  2. Speed of static app
    By jcr in forum Qt Programming
    Replies: 1
    Last Post: 6th October 2006, 20:09
  3. How to get qtdemo with reasonable speed?
    By ponto in forum General Discussion
    Replies: 8
    Last Post: 31st May 2006, 10:25
  4. Speed penalty when using RTTI?
    By pir in forum General Programming
    Replies: 5
    Last Post: 19th May 2006, 00:36
  5. A way to transfer info from .pro to Makefile
    By thawkins in forum Qt Programming
    Replies: 3
    Last Post: 2nd May 2006, 21:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.