[Development] Adding CPD support to Qt print dialog

Volker Hilsheimer volker.hilsheimer at qt.io
Tue Jun 18 10:25:02 CEST 2024


Hi all,

The support for Common Print Dialog Backends has been in the works for a while. As of last year we are provisioning the SDK in our CI nodes:

https://codereview.qt-project.org/c/qt/qt5/+/471258

but the change on Qt is stuck a bit. Could someone with experience and knowledge about the state of CPDB help with reviewing those patches, please? Open changes are in the chain at

https://codereview.qt-project.org/c/qt/qtbase/+/437301/17

(need to be rebased and the SDK might need to be bumped to latest version v2.0b5).

Thanks,
Volker


> On 17 Oct 2022, at 16:03, G G <gaurav.gen3 at gmail.com> wrote:
> 
> I have added CPDB support to the print dialog, and opened a pull request here: https://codereview.qt-project.org/c/qt/qtbase/+/437301. It would be great if anyone is able to review it.
> 
> To build qt with CPDB support, make sure you have CPDB frontend library: https://github.com/openprinting/cpdb-libs and CPDB CUPS backend: https://github.com/openprinting/cpdb-backend-cups installed. Their debian packages are outdated, since I had to make some one time changes and improvements to CPDB while adding support to the GTK and Qt print dialog. Once you have both of them installed, the "configure" command should automatically pick up on the CPDB backend and prefer it over the CUPS backend.
> 
> For now, I have used "#if QT_CONFIG(cpdb) ... #endif"  constructs in the UNIX print backend, and also added a CPDB Job widget, which shares the same UI as CUPS Job widget but different implementation. 
> 
> Thanks,
> Gaurav
> 
> 
> On Fri, Sep 16, 2022 at 3:50 AM Gaurav Guleria <gaurav.gen3 at gmail.com> wrote:
> Hello all,
> 
> I am Gaurav Guleria, a GSoC student, working with Till Kamppeter to add 
> and improve Common Print Dialog (CPD) support to existing print dialogs 
> like GTK and Qt. More about CPD can be read here: 
> https://openprinting.github.io/projects/04-print-dialog/.
> 
> I wanted to ask about your opinions on the implementation and the way we 
> should proceed with it. I talked with a few people and read this old 
> article here: https://wiki.qt.io/Qt-5-QtPrint, which suggests the Qt 
> team prefers CPD support as a plugin rather than a direct integration 
> into the QPrintDialog.
> 
> Just to summarize briefly, implementing CPD support directly in the 
> print dialog would mean that the Qt team wouldn't have to worry about 
> any future CUPS changes, or any other print backends for that matter, as 
> CPD will handle them all instead.
> 
> It would be really helpful if you could share your views on this and 
> give your suggestions.
> 
> Thanks,
> 
> Gaurav
> 
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development



More information about the Development mailing list