Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75240

QPainter.drawText crashes when no window connected

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.5.1
    • GUI: Painting
    • None
    • In this case Ubuntu Linux 16.04. But this is about the QPainter::drawText QGuiApplication rather than on QCoreApplication.

    • All

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            fbo Freek
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes