Hello Friends, I declared static object in my project if my user defined class in another class. So can I receive emmited signals of that static object? Here's exact situation. I have MyUtil class in my project. In that I have declared QTimer class. In MyUtil class I have define method to receive timeout event. If time occur by QTimer class it will call my timeout method and that time out method will emit signal called myTimeout().
I have another class in my project say, LocationData. In Location data class, I have created static MyUtil class object. Now from another class called SubmitData, I am trying to connect static object of MyUtil class of LocationData in SubmitData class. But I can't receive that emmited signal myTimeout().
static MyUtil *util;
My connect statment in SubmitData.cpp as under.
connect(LocationData::util, SIGNAL(locationTimeOut()), this, SLOT(cancelProgress()));
Anyone has idea why it's not working??
Is this problem due to static object??