Results 1 to 8 of 8

Thread: QNetworkAccessManager doesn't call finished signal

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Nov 2014
    Posts
    8
    Thanks
    3
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: QNetworkAccessManager doesn't call finished signal

    anda_skoa, thanks for reply!

    Oh it's my fault, 12 hours with PC is a bad thing

    I forgot to create a new instance:
    Qt Code:
    1. AppApi a;
    2. a.makeRequest();
    To copy to clipboard, switch view to plain text mode 
    Here the "solution".
    Qt Code:
    1. AppApi *a = new AppApi;
    2. a->makeRequest();
    To copy to clipboard, switch view to plain text mode 

    Some questions.
    - How i can make async requests and return response without creating new instances for AppApi? (static functions?)
    For example, i have a class UserApi which inherits AppApi and i need able to use makeRequest().

    - Should i use deleteLater() after i process request response?

    Thanks
    Last edited by Swiftie; 13th November 2014 at 22:37.

Similar Threads

  1. QNetworkAccessManager no finished() signal emitted
    By realperson in forum Qt Programming
    Replies: 4
    Last Post: 18th January 2018, 08:42
  2. Replies: 7
    Last Post: 7th August 2014, 06:43
  3. QFutureWatcher doesn't get finished signal
    By Mobility in forum Newbie
    Replies: 3
    Last Post: 20th September 2012, 09:25
  4. QNetworkAccessManager does not signal finished
    By lukas.zachy in forum Newbie
    Replies: 5
    Last Post: 26th January 2011, 09:05
  5. QUrlOperator doesn't emit finished signal
    By hayati in forum Qt Programming
    Replies: 16
    Last Post: 26th March 2007, 20:25

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.