[Interest] Painting fonts without GUI
Federico Buti
fed.buti at gmail.com
Tue Jun 7 13:48:46 CEST 2016
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 <etienne.sandre at m4x.org>
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
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160607/20c2b8f3/attachment.html>
More information about the Interest
mailing list