When I open the application, the application is waiting for a connection to the server, I did this by calling the slot run()that is waiting for the confirmation packet from the server and when it receives it, then it hides the "Waiting for connection" and loads other things. The problem is that when it waits for a package, the icon in the system tray does not respond to anything, when the server sends the download of packages and applications, then the icon in the system panel starts responding (for the context 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();
QTimer::singleShot(2000,&w,SLOT(run()));
return a.exec();
}
source
share