Hi, you need a QGuiApplication for that. See e.g. this stackoverflow question <http://stackoverflow.com/questions/26205461/qpainter-drawtext-sigsegv-segmentation-fault> .
Cheers, F. On 7 June 2016 at 11:04, Etienne Sandré-Chardonnal <[email protected]> wrote: > Hi, > > When I try painting text over a QImage in a console only application with > QPainter::drawText, the program crashes. > > Is there any way to enable font painting in a non GUI application? It > should work without any X server, so in that case Qt should have a fallback > font? This does not need to be pretty text. > > Thanks! > > _______________________________________________ > Interest mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/interest > >
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
