[Qt-interest] QApplication to QCoreApplication

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Wed Jan 14 09:08:38 CET 2009


Nitin Mahajan wrote on Wednesday, January 14, 2009 8:42 AM:

> ...
> What
> are the least changes I can do to convert this apater from disabling
> the call to show()? I dont want to see application's UI, mouse
> pointer, and any pop up messages.

What exactly do you want to know? What do you mean with "least changes"? Which parts of the Qt API still work when you only have a QCoreApplication running (instead of a QApplication)?

I would say, as a rule of thumb, every Qt part which you include from the

  #include <QtCore/...>

world runs with only a QCoreApplication. That naturaly rules out everyting which comes from <QtGui/...> and modules which depend on the GUI module.

So if you only instantiate a QCoreApplication and refrain from calling any non-Core API then your application should work.

Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22




More information about the Qt-interest-old mailing list