Never seen exec() being called without object, you better call exec() on the QCoreApplication object that you created.

The code should be somewhat like this

Qt Code:
  1. QCoreApplication app(....);
  2.  
  3. // setup stuff
  4.  
  5. app.exec();
To copy to clipboard, switch view to plain text mode 

I wonder what you are doing here though.
This is obviously intended to be used by a non-Qt application. BB10's app framework "Cascades" is Qt4 based. Kind of a strange conflict.

Cheers,
_