Results 1 to 4 of 4

Thread: How to wait till QNetworkReply gives a result

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: How to wait till QNetworkReply gives a result

    Quote Originally Posted by mac.tieu View Post
    Replace
    Qt Code:
    1. //QMessageBox::information(this,"asd","asdasd");
    To copy to clipboard, switch view to plain text mode 
    with
    Qt Code:
    1. while (!reply->isFinished());
    To copy to clipboard, switch view to plain text mode 
    To wait while request is being processed.

    MT.
    That will block the program.
    Instead, use signals and slots. http://doc.qt.nokia.com/4.7/qnetwork....html#finished

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

    Default Re: How to wait till QNetworkReply gives a result

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QRegExp - get only last result
    By kabanek in forum Newbie
    Replies: 2
    Last Post: 3rd November 2010, 22:17
  2. Replies: 5
    Last Post: 24th October 2010, 06:54
  3. Wait in thread till QTcp socket have some thing to read
    By hasnain in forum Qt Programming
    Replies: 2
    Last Post: 14th September 2010, 12:46
  4. Replies: 8
    Last Post: 27th October 2009, 09:07
  5. Replies: 3
    Last Post: 16th November 2006, 12:24

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.