The application object is the one responsible for the event loop.
You can create QObject before the QApplication / QCoreApplication but you wont be able to use events or signal slots.
But writing / reading from a file should not be a problem.