Results 1 to 6 of 6

Thread: Thread related problems with QNetworkAccessmanager

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Oct 2015
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Thread related problems with QNetworkAccessmanager

    The bigger picture is that this is part of a much larger process that takes a long long time, and this network use happens in the middle of it. To avoid freezing the GUI, this larger process happens in a different thread and provides updates to the GUI so the GUI can have a nice progress bar and tell the user interesting things about what is happening.

    So it sounds like I need to have this process still happen in a different thread, but instead of having it do its own
    Qt Code:
    1. QNetworkReply *reply = _manager->get(request_);
    To copy to clipboard, switch view to plain text mode 
    I need this secondary, non-GUI process to emit a signal that then causes
    Qt Code:
    1. QNetworkReply *reply = _manager->get(request_);
    To copy to clipboard, switch view to plain text mode 
    to happen in the main thread, and have the secondary process then wait around until the reply object emits a signal saying it's finished?
    Last edited by Moschops; 20th October 2015 at 13:19.

Similar Threads

  1. Thread related questions
    By Cruz in forum Qt Programming
    Replies: 11
    Last Post: 22nd February 2011, 10:57
  2. QNetworkAccessManager + DiskCache => use Thread?
    By Coolcat in forum Qt Programming
    Replies: 4
    Last Post: 20th January 2011, 21:52
  3. Multi-thread related problem,help me
    By mendynew in forum Qt Programming
    Replies: 2
    Last Post: 3rd November 2008, 03:02
  4. Problem related exiting the thread
    By raghvendramisra in forum Qt Programming
    Replies: 1
    Last Post: 16th July 2008, 10:10

Tags for this Thread

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.