View Single Post
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#19
Originally Posted by pichlo View Post
Is that a challenge? In that case, I accept! (It may take a while though, starting with coming up what kind of app this should be. Any ideas?)
Actually, it isn't _so_ hard to do; but, if you want to do that with Qt, you either have to live with your QApplication object starting up a gui in the background even when just used as command-line, or set up both a QApplication and a QCoreApplicaton in the main function, and parse through the command-line args _before_ you pass them to Qt in order to figure out which one to instantiate... Pretty annoying either way.
 

The Following 3 Users Say Thank You to Copernicus For This Useful Post: