[Development] Adding CPD support to Qt print dialog
Tor Arne Vestbø
Tor.arne.Vestbo at qt.io
Mon Sep 19 18:29:30 CEST 2022
> On 19 Sep 2022, at 18:21, Till Kamppeter <till.kamppeter at gmail.com> wrote:
> On 19/09/2022 15:43, Tor Arne Vestbø wrote:
>>> First is to create a new Qt print backend, what, instead of communicating directly with CUPS, communicates with the CPDB backends. It is some kind of "middle end", on one end being a Qt print backend and on the other end being a CPDB frontend.''
>> This sounds like a good first step. It doesn’t involve any of the GUI bits, just the enumeration and communication with the various CPDB-exposed printers.
>> Since the QtPrintSupport module doesn’t depend on DBUS today (AFAIK), the CPDB print backend should be a plugin.
> OK, Gaurav so you should be able to provide the CPDB support as a plugin (Tor, is this a Qt print backend like the one for CUPS for example?).
Correct. Note that for Qt 6, some of the print engines that were previously plugins were moved into the QtPrintSupport library directly, such as the macOS print engine, but the interface for enumerating these from Qt’s point of view is still as print engine “plugins”. The CUPS engine is a fully standalone plugin, so it’s a good basis for the CPDB work.
More information about the Development