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

QPrinterInfo/printsupport requires QGuiApplication, but not documented

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.10.0
    • None
    • macOS High Sierra
    • macOS

      When QCoreApplication is used instead of a QApplication, no printer infos are available.

      QPrinterInfo::availablePrinters().isEmpty() == true
      QPrinterInfo::defaultPrinter().isNull == true

      Printing should be independent of any GUI and if not, there should be a meaningful (or at least any) error message.

       

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

            docteam Qt Documentation Team
            picaschaf Alexander Nassian
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes