'am working in qt creator but have problem running my code.
It compiles alright but never executes.
And also gives the following message at the output pane 'exited at code -1073741819'
Please help me out
Clearly it is running since it "exited" just not in the way you intended.
Build and run in debug mode, if you are getting some sort of exception it should stop you where the code is going wrong. Alternitively step through the code in the debugger so you can locate by hand where it fails.