Hi,

I want to get the session id of my app.For this I have used the QApplication class, but I can't able to get the id infact my app stops working when it get to the QApplication line. Here is my code used for the session id.

Qt Code:
  1. QString session_ID = app->sessionId();
  2. qDebug()<< session_ID;
To copy to clipboard, switch view to plain text mode 

Am I doing anything wrong or missing something.

Thank You,
Baluk