Results 1 to 5 of 5

Thread: emit not working in constructor

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2014
    Posts
    23
    Thanks
    4

    Post emit not working in constructor

    Consider the scenario:
    I have 3 CLASS. 1st and 2nd CLASS can be accessed via 3rd CLASS..So i place a connect() inside 3rd CLASS connecting 1st CLASS signal() to 2nd CLASS slot().....But if i place my emit signal in 1st CLASS constructor, its not hitting the slot in 2nd CLASS....But in 1st CLASS, if i place a timer and in its timeout() i emit the signal then appropriate slot is called in 2nd CLASS...

    I need to know the reason why emit is not valid inside 1st CLASS constructor....

    NOTE: 2nd CLASS object is created before 1st CLASS..So there should not have been a problem with calling emit() from 1st CLASS constructor....
    Last edited by vinothrajendran; 11th December 2014 at 10:49. Reason: updated contents

Similar Threads

  1. Replies: 7
    Last Post: 24th September 2012, 07:17
  2. Replies: 2
    Last Post: 13th March 2012, 05:26
  3. what does the constructor do here?
    By LB4229 in forum Qt Programming
    Replies: 7
    Last Post: 22nd June 2011, 03:19
  4. Replies: 13
    Last Post: 19th June 2011, 21:04
  5. class constructor
    By ^NyAw^ in forum Qt Programming
    Replies: 2
    Last Post: 5th December 2008, 18:25

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.