Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.2, 5.7.0, 5.8
-
None
-
4aebbef8ab94723d59679f30005b114197c995b9 (qtbase/dev. 9.12.2016, 5.9.0)
Description
If you have two printing plugins installed QPlatformPrinterSupportPlugin::get() [0] always selects the first found in the map and doesn't allow for a choice to be made.
The attached patch, adds support for an environment variable to be used to select the printer plugin.
For example
QT_PRINTER_MODULE=cupsprintersupport
would select the cups plugin, and if this wasn't found fallback to selecting the first in the map.
0 - http://code.qt.io/cgit/qt/qtbase.git/tree/src/printsupport/kernel/qplatformprintplugin.cpp