i got the problem....but still not getting the solution...
QDateTime aTime_=getTime(); //gives the same format as current
QDateTime currTime;
currTime.setTimeSpec(Qt::UTC);
currTime=QDateTime::currentDateTime();
QTimer::singleShot(currTime.secsTo(aTime_)*1000, this, SLOT(slot_a_Mode()));
qDebug()<<currTime<<aTime_<< "seconds to call..."<<currTime.secsTo(aTime_);
____________
currTime.secsTo(aTime_); ----giving some unknown value, and I cant figure out why
Bookmarks