Thank you, Adam! On Tue, Dec 21, 2010 at 9:58 PM, Coda Highland <[email protected]>wrote:
> This is completely normal behavior. The code you have written does > exactly one thing: it starts the application event loop and will run > until something makes it quit (for instance, by invoking > QCoreApplication::quit()). > > /s/ Adam > > On Tue, Dec 21, 2010 at 5:39 PM, Akos Zalavary <[email protected]> > wrote: > > Hi, > > I'm quite new to QT, so the answer on my question most probably will be > > obvious. > > If I create a totally empty project for console application, > > #include <QtCore/QCoreApplication> > > > > int main(int argc, char *argv[]) > > > > { > > > > QCoreApplication a(argc, argv); > > > > return a.exec(); > > > > } > > > > it runs properly, however I have to press Ctrl-C all the time to close > it, > > even if I run the compiled executable from command prompt. > > > > Why? How could I solve this? > > > > Thank you! > > > > Akos > > > > _______________________________________________ > > Qt-creator mailing list > > [email protected] > > http://lists.qt.nokia.com/mailman/listinfo/qt-creator > > > > > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.qt.nokia.com/mailman/listinfo/qt-creator >
_______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
