title: Create global QHash variable using qt c++
body: <p>I am creating a basic chat application using qt c++ in which server has to serve the multiple clients using threads, now i want to store socket descriptors and name of the respective user using QHash variable.
  so i am really not understanding how to declare a global QHash variable so that each thread can update the values to that variable.
  I did try storing socket descriptor into sqlite database but it did worked out. How to proceed further?</p>