PDA

View Full Version : Different behaviour of QApplication!!



Raajesh
30th June 2008, 11:34
Hi all,

QApplication behaves differently on Mac and Windows. Say for example,


#include <QApplication>

int main(int argc, char *argv[])
{
QApplication myapp(argc,argv);
return myapp.exec();

}

This program runs on windows till you kill it from task manager. Where as on Macintosh it
just exits. What do we have to do to get same behaviour as windows on Macintosh?

Thanks,
Raajesh

Raajesh
30th June 2008, 16:28
can some body guide on this ?
Raajesh

fullmetalcoder
30th June 2008, 17:00
Probably because windows and mac treat differently window-less applications...
I expect if you create GUI or use QCoreApplication instead (in case your app does not make use of the QtGui module) your app will behave the same on all platforms.