After Simon and Paul made some advancements to Qt's font rendering system, it's possible to render fonts in Qt running in Tty / console mode; that is, you don't need an X11 connection. That means that the last piece of the puzzle is in place to use Qt for CGI scripting. :-) It sort of always worked, but now also for text. Guess what this is:
It's a screenshot of output generated from a Qt CGI script based on Graphics View. Here's how to do it:
int main(int argc, char **argv)
QApplication app(argc, argv, QApplication::Tty);
Create your QApp with QApplication::Tty (former 'false') to run in console mode.