It looks like you're using the wrong characters for the quotes in this line: Code: QLabel *label = new QLabel(“Hello World”); Change these to ASCII quotes and it should compile. I'm not sure why gedit would have used the wrong quotes. Did you copy/paste the hello world code from somewhere?
QLabel *label = new QLabel(“Hello World”);