GLib Event Loop
From qtnode
The Default Event Loop
As of the 4.2 Technology Preview, Qt will try to use the GLib event loop by default on UNIX systems (i.e., where Q_OS_UNIX is defined). GLib support is an autodetected configuration option and of course requires the proper files for GLib 2.0 development to be installed before compiling Qt.
Disabling GLib Support
For whatever reason you may wish to instead use the old UNIX event dispatcher (QEventDispatcherUNIX). This can be done in two ways.
- When compiling Qt: configure Qt with the -no-glib option, or just don't have the GLib 2.0 development files installed.
- When running an application: export the environment variable
QT_NO_GLIB. It doesn't seem to matter what value you set, as long as it's not empty.