int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QImage i(200, 200, QImage::Format_RGB32); QPainter p(&i); p.drawText(0, 0, "Hello world"); return 0;}