Results 1 to 7 of 7

Thread: Waiting for a download event

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Waiting for a download event

    You have your mind set on a synchronous connection.
    While, as stated already, the get() function is asynchronous.

    You want to use the finished() signal.
    And you need to change the program logic to deal with this. This should not be too hard.
    Basically, create a signal in your xmlReader class that fires when the networkaccessmanager finished() signal is fired. Before that, the xmlReader class can do the necessary parsing.
    Then connect a slot from your WallPaperselection class to the xmlReader finished signal.
    Then use some getter functions to get the needed data.

  2. The following user says thank you to tbscope for this useful post:


Similar Threads

  1. Replies: 1
    Last Post: 9th July 2009, 08:59
  2. Waiting WebKit
    By giusepped in forum Qt Programming
    Replies: 0
    Last Post: 13th May 2009, 03:40
  3. Waiting for multiple threads
    By Bebee in forum Qt Programming
    Replies: 1
    Last Post: 18th November 2008, 17:21
  4. Waiting on a thread?
    By MrGarbage in forum Qt Programming
    Replies: 1
    Last Post: 3rd November 2007, 16:13
  5. Waiting for something
    By JonathanForQT4 in forum Newbie
    Replies: 20
    Last Post: 2nd May 2007, 17:35

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.