Results 1 to 10 of 10

Thread: Emitting signals in other thread

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2010
    Posts
    97
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Emitting signals in other thread

    Hi,

    I have a requirement where I have to call QNetworkAccessManager methods from a class which has base class as QThread. And I also I have to capture QNetworkAccessManager's finished() signal.

    Qt Code:
    1. class test: public QThread{
    2. Q_OBJECT
    3. public:
    4. test(QObject *parent=0);
    5.  
    6. private:
    7. QNetworkAccessManager *manager
    8. }
    To copy to clipboard, switch view to plain text mode 

    when it emits signal by run() method in a class, it fails because it complains about conflict between parent thread and child thread.
    Need a solution to handle this


    Thanks

    Manish
    Last edited by wysota; 27th May 2011 at 19:15. Reason: missing [code] tags

Similar Threads

  1. Replies: 5
    Last Post: 22nd February 2011, 21:21
  2. Emitting signals from event handler
    By MarkoSan in forum Qt Programming
    Replies: 1
    Last Post: 3rd December 2009, 07:26
  3. Replies: 3
    Last Post: 17th November 2009, 21:10
  4. emitting and catching signals
    By srohit24 in forum Qt Programming
    Replies: 12
    Last Post: 4th August 2009, 18:32
  5. emitting signals in const function
    By maxel in forum Qt Programming
    Replies: 3
    Last Post: 19th October 2008, 15:05

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.