Use the "Empty Qt Project" template. See this as well as the overall documentation (all of it).