When I open my application then the application is waiting for a connection to the server, I have done that by calling a slot run()
which waits for a acknowledgement packet from server and when it receives it then it hides "Waiting for connection" string and loads other things. The problem is that when it waits for a packet then the system tray icon is not responding to anything, when the server sends packet and application loads then the system tray icon starts responding (for right-click menu).
I am using ZeroMQ for IPC.
I have something like this:
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
//THIS PART
QTimer::singleShot(2000,&w,SLOT(run()));
return a.exec();
}