Ok, I see, sorry for stupid question. I am a little rusty at c++. Can you:
1) Please move this thread to c++, siince it has no connection with qt
2) How can I make macro, that will compute CenterX and CenterY?