you have to change the CONFIG var in your .pro file
CONFIG += console
CONFIG -= gui
Look at the doc, I'm unsure about the vars that has to hold "console" property.
you have to change the CONFIG var in your .pro file
CONFIG += console
CONFIG -= gui
Look at the doc, I'm unsure about the vars that has to hold "console" property.
Current Qt projects : QCodeEdit, RotiDeCode
I have used:
in my .pro file. This gets core features (QtCore) and SQL features (QtSql).
Thanks everyone. I was trying to use QCoreApplication but had the order of exec compared to other code in the wrong place."Minor" refactoring and voila! I get to move on to other issues.
Side note:
By including QApplication you get qApp(), but there is no comparable (that I have found) ability in QCoreApplication. Sure, I can include QApplication to get it but that seems a bit extreme and naturally requires the gui libraries. Or am I missing something?
QCoreApplication::instance()
Bookmarks