Add Qt support to CommonApplication