So, what is the problem? And are we talking Qt3 or Qt4 here? Your profile suggests you are using Qt3 but the snippet you posted seems to be from Qt4...