Results 1 to 4 of 4

Thread: QUrlOperator bug or what?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QUrlOperator bug or what?

    Quote Originally Posted by marcel View Post
    dataTransferProgress will be particular for every file in the list you pass to copy.
    Also, you have to examine the QNetworkOperation pointer that is passed to you with each finished signal. BTW, you also get a finished signal after each single file copy operation is done.


    So:
    1. Your progress handling is wrong.
    2. Look at the type of QNetworkOperation in finished, to see what exactly has finished.
    For copy I think QNetworkProtocol::OpGet is what you should have.

    Regards
    Thanx for replying.

    It seems that my progress handling is wrong, but the behavior I am describing happens when I am trying to copy a single file.

    Also, how can we know that we finished copying all file?

    Regards,
    Ahmed Toulan.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QUrlOperator bug or what?

    Quote Originally Posted by thelinuxer View Post
    Thanx for replying.
    It seems that my progress handling is wrong, but the behavior I am describing happens when I am trying to copy a single file.
    Weird.

    [/quote]
    Also, how can we know that we finished copying all file?
    [/quote]

    You always have the startedNextCopy signal that you can connect to.
    Another solution is to use the other version of copy, for a single file, in conjunction with the finished signal.
    When you get the finished signal for a copy operation, then you know that it is ok to start the next one.
    For this you will have to queue your files.

    Regards

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.