hi ...

can anyone provide me solution to get the id of client windows. i had written as the following:
int winid=0;
QPtrList<QWSWindow> windowList;
windowList = qwsServer->clientWindows();
QWSWindow *ab;
ab=windowList.first();
printf("\n THE WINDOW ID:%x\n",ab->winId());

but it returns the id of the parent window...

can anyone say me where i'm going wrong....?is there anything wrong in my code...? is my main(in the earlier post) correct..? if please let me know what is wrong...

thanks in advance,

saravanan