just use it like that:
@extern int var = 0;
extern QString aa = "";@
then use it in your cp file like any other var.. but don't re-initialize them, not like what you wrote..
Also... avoid extern and static use in Oriented object languages... classes are here to make everything easier, when you're using global variable you're breaking it. (It's like never use private statement in classes)..