I want to have global objects,so that I can use them inside seperate functions,how can I make them?For example,when I write

QLabel *label1=new QLabel;

under "#include sections",over "functions sections",it gives an error while starting debugging although it doesn't give any error while compiling.