Generic template for Qt applications