good u solved the problem

activateWindow is a function of QWidget in Qt 4.2.0 onwards. I am not sure about Qt 3