[Qt-interest] Executing code after QApplication::exec() without user intervention

Nikos Chantziaras realnc at arcor.de
Tue Apr 27 08:00:15 CEST 2010


I'm sure there's some obvious solution to this, but my brain seems stuck :P

How do have a method executed automatically after the main event loop 
(app->exec()) has started?  This is for the case where the application 
takes a command-line argument to open a file.  Right now, this is simply 
done the usual way, through the application's "File->Open" menu.  But 
providing a filename as a command-line arg means I need to open the file 
without user intervention.



More information about the Qt-interest-old mailing list