Results 1 to 2 of 2

Thread: Downloading files simultanously without making program stop responfing (Threads?)

  1. #1
    Join Date
    Feb 2010
    Posts
    68
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Downloading files simultanously without making program stop responfing (Threads?)

    Hello there,

    I'm working on P2M client. The program has to be able to download many files simultanously. I have made a program using QTcpSocket class, which is logging in to the mailbox and downloading all the attachments which are there. The problem is, that the application is completely not responding during the process of downloading.

    Why something like that happens, how to deal with it?
    What if I want to log in to, let's say, 9 mailboxes simultanously and download the attachments from there at the same time? And keep the app working, of course.

    Every help will be appreciated .

  2. #2
    Join Date
    Mar 2010
    Location
    Belgium
    Posts
    14
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Downloading files simultanously without making program stop responfing (Threads?)

    Hi,

    Yes, such behaviour is normal. You have to manage each connection into one thread.
    Once a thread is launched, its background work is started and the main thread continues its flow.

Similar Threads

  1. Downloading multiple files using QNetworkAccessManager
    By aurorius in forum Qt Programming
    Replies: 3
    Last Post: 7th August 2009, 10:51
  2. Replies: 12
    Last Post: 17th June 2009, 05:34
  3. Program freeze when timer->stop();
    By gQt in forum Qt Programming
    Replies: 2
    Last Post: 8th January 2009, 14:05
  4. making the printer correctly interpret pcl files
    By momesana in forum Qt Programming
    Replies: 1
    Last Post: 17th April 2008, 16:41
  5. [Solved] Open files outside my program
    By Nykoo in forum Qt Programming
    Replies: 0
    Last Post: 27th January 2008, 16:13

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.