Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
5.5.1
-
None
-
In this case Ubuntu Linux 16.04. But this is about the QPainter::drawText QGuiApplication rather than on QCoreApplication.
Description
When using the QPdfWriter class and drawtext with QPainter, you need the complete gui on your system.
If you run a program that creates a pdf from e.g. a Linux system with desktop it works, but connecting from a remote to the same system with e.g. ssh it crashes because it needs the gui environment.
This is a pity, since e.g. putting pictures in works.
Now we need to fall back to external libraries like PoDoFo, which are not as nice as the Qt native functions.
Could this be changed, since a lot of printing routines, especially on reporting happens for server based applications that do not run on a client environment.