Hi,
It depends on your OS. On Windows you can check the system variable "QTDIR".
Qt Code:
  1. char* qtdir = getenv("QTDIR");
To copy to clipboard, switch view to plain text mode 

I don't know if Linux have "getenv" function but there will be a similar one.