Qt environment construction