This question has precisely nothing to do with either Qt or Qt creator.

For future reference, the language you are writing code in is called C++.