[Qt-interest] QtHelp module dependencies

Thiago Macieira thiago at kde.org
Sun Jul 31 15:57:37 CEST 2011


On Sunday, 31 de July de 2011 01:26:15 Constantin Makshin wrote:
> Hello!
> 
> Mkspecs file for the QtHelp module (mkspecs/features/help.prf) contains line
> QT += xml sql
> 
> The problem is that QtHelp module doesn't use any XML-related classes except
> QXmlStream*. And since these classes were moved to QtCore some time ago (in
> Qt 4.7.0 or even earlier), "QT += xml" part of the statement causes
> unneccessary dependency in applications that use QtHelp to show their
> documentation — QXmlStream* classes were left in QtXml for backward
> compatibility, so the linker can't determine whether this library is really
> needed or not and puts it to the list of used libraries. This behavior
> creates some problems related primarily to packaging/distribution of such
> Qt applications — wasted space in all-in-one packages, redundant
> dependencies in Linux packages, etc.
> 
> The question is:
> Was this dependency left intentionally or did Qt developers simply forget to
> remove it when they moved QXmlStream* classes to the QtCore library?

QtHelp was designed in Qt 4.4, which is the same release that moved the 
streaming XML classes to QtCore. So this is an oversight.

-- 
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: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110731/1d925f33/attachment.bin 


More information about the Qt-interest-old mailing list