Results 1 to 6 of 6

Thread: QNetworkAccessManager does not work from QRunnable

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QNetworkAccessManager does not work from QRunnable

    Quote Originally Posted by d_stranz View Post
    Every variable you define in your send() method is allocated on the stack, and thus will go out of scope as soon as the function exits.
    It's even better - take a look at the run() method...

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,233
    Thanks
    303
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QNetworkAccessManager does not work from QRunnable

    It's even better - take a look at the run() method...
    Yes, saw that. But one step at a time. Eventually the OP will run out of hammers and might start to think about the problem and the approach.
    Last edited by d_stranz; 25th October 2019 at 18:26.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. QNetworkAccessManager and QRunnable issue
    By luk_man_ in forum Qt Programming
    Replies: 7
    Last Post: 23rd October 2019, 16:57
  2. get status of QRunnable
    By Qtonimo in forum Qt Programming
    Replies: 6
    Last Post: 30th July 2012, 08:13
  3. Use QRunnable without QThreadPool
    By Qiieha in forum Qt Programming
    Replies: 2
    Last Post: 18th August 2011, 10:02
  4. QNetworkAccessManager doesn't work
    By Floppy in forum Newbie
    Replies: 7
    Last Post: 14th November 2009, 16:32
  5. QThreadPool and QRunnable
    By jimc1200 in forum Qt Programming
    Replies: 3
    Last Post: 6th May 2009, 10:43

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.