Not positive but I believe this should work:
Qt Code:
const QPtrList<QWSWindow> windowList; QWSServer server; windowList = server.clientWindows();To copy to clipboard, switch view to plain text mode
mAx
Not positive but I believe this should work:
Qt Code:
const QPtrList<QWSWindow> windowList; QWSServer server; windowList = server.clientWindows();To copy to clipboard, switch view to plain text mode
mAx
hi...
thank for your suggesstion. but still a bit clarifications.
in the main.cpp of my application i had written as follows:
int main( int argc, char **argv )
{
QApplication a( argc, argv ,QApplication::GuiServer);
keyclass w;
//w.setWFlags(Qt::WStyle_Customize);
//w.setWFlags(Qt::WStyle_Tool);
a.setMainWidget( &w );
w.show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
return a.exec();
}.
so this is a server application right....? in that case i had altered the code as follows:
qwsServer->openKeyboard();
const QPtrList<QWSWindow> windowList;
windowList = qwsServer.clientWindows(); ...
is this correct...? else how...?
also when i compiled : there were errors as: "request for member ‘clientWindows’ in ‘qwsServer’, which is of non-class type ‘QWSServer*’".
so trying to find some other way.
if you have any more suggestions please let me know.
saravanan
opps soory i did not remove the statement"qwsServer->openKeyboard();"
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
Bookmarks