Hi,
If you program crash when you try to use QApplication, it can be because you don't have the appropriate lib in your target.
Qt works with modules, GUI module and Core module are two of them.
QCoreApplication is part of the Core module (you need the libQtCore.so in your target).
QApplication is part of the GUI module ( you need the libQtGui.so in your target).
Of course you can check for dependency with ldd command.
QApplication is for app with GUI.
QCoreApplication if for app without GUI.
So, use the one that fit for your project.
Bookmarks