Results 1 to 7 of 7

Thread: QHttp RequestStarted does not even begin!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2007
    Posts
    30
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QHttp RequestStarted does not even begin!

    double post.

  2. #2
    Join Date
    Jul 2007
    Posts
    30
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QHttp RequestStarted does not even begin!

    Ok I figured it out.

    You were right the first time wysota.

    See I do have an application running as app.exec(), but what I later meditated and figured out was, that if you have a program that works and then a function calls a new class (which does the HTTP work), then that new class returns, and then the function ends. And my problem was, I declared the class as a local object and it was on the local stack, so as soon as that function returned as well, the HTTP class never got a chance to run long enough to create signals etc... As soon as I changed the local object to a pointer object that runs throughout the main class, it worked perfectly.

    Thanks.

Similar Threads

  1. From QHttp to QHttp over SSL
    By Nyphel in forum Newbie
    Replies: 1
    Last Post: 3rd July 2007, 10:41

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.