As you have noticed, QtCore and QtGui are enabled by default. This means that the QT variable contains "core" and "gui" by default. So remove "gui" in a way or other:
QT = core # take core alone in use, removes everything else
QT = core # take core alone in use, removes everything else
To copy to clipboard, switch view to plain text mode
QT -= gui # remove gui from whatever modules there are enabled
QT -= gui # remove gui from whatever modules there are enabled
To copy to clipboard, switch view to plain text mode
QT = core network # take core and network in use
QT = core network # take core and network in use
To copy to clipboard, switch view to plain text mode
Bookmarks