KDE4 printing: results of IRC meeting

Thiago Macieira thiago at kde.org
Fri Sep 14 23:06:49 BST 2007


Bart Coppens wrote:
>On Friday 14 September 2007 23:51, Thiago Macieira wrote:
>> KDE Libs 4.0's printing will work only on Qt 4.3.2 because it will do
>> a very ugly hack of modifying QPrintDialog. If you upgrade Qt without
>> upgrading KDE, you will very likely lose those extra configuration
>> pages. (Which Windows and Mac users won't be seeing anyways)
>
>Wow. This completely defeats the idea of backwards-compatibility. 
> Purposely depending on code of which you know it will be
> ABI/API-incompatible in the next release sounds like a *very* bad idea
> to me.

We do that all over the place with Qt. We use a lot of internals.

In this case, what this hack is about is to get the QPrintDialog -- which 
is a QDialog -- find the widget called "generalWidget", add a QTabWidget 
as its parent and insert it into the dialog. And keep the button box in 
the proper place.

This obviously depends on the internal construction of the dialog. That's 
why it won't work with the native dialogs.

The only alternative I can see is to write a KPrintDialog. We won't be 
able to get rid of it until KDE 5.
-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070915/f2d3a5f5/attachment.sig>


More information about the kde-core-devel mailing list