Results 1 to 15 of 15

Thread: QNetworkAccessManager help needed! Class problem...

Threaded View

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

    Default Re: QNetworkAccessManager help needed! Class problem...

    Quote Originally Posted by TCB13 View Post
    It's the only way I can do it...
    No, it's not, you just have to change the way you think.

    Because that's a checkpoint I need to check if the info is correct, otherwise I need to stop the server and clean some stuff in other classes.
    It doesn't mean your program has to "wait" before "returning to the tcpserver class". Especially since you're in a constructor.

    So I need the program to stay on http2 until it has an answer and then return it to tcpserver class...
    No, you don't. You only need to execute code B after code A is complete. It doesn't mean you have to wait for anything.

    I can't just throw the rest of the program in a new custom slot and activate it by a signal...
    Why not?


    The solution I made is not working the program is always in the while loop and nothing happens then.
    It won't work. You don't have an event loop running, no networking operations can ever complete this way.
    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.


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

    TCB13 (28th August 2011)

Similar Threads

  1. Replies: 8
    Last Post: 19th April 2011, 07:17
  2. QNetworkAccessManager problem instantiating
    By hojoff79 in forum Qt Programming
    Replies: 8
    Last Post: 9th February 2011, 04:59
  3. Replies: 7
    Last Post: 2nd September 2010, 19:42
  4. qnetworkaccessmanager problem!
    By novamaster in forum Qt Programming
    Replies: 6
    Last Post: 7th August 2010, 11:46
  5. help needed to write a render class
    By franco.amato in forum Qt Programming
    Replies: 9
    Last Post: 1st June 2010, 22:07

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.