[Qt-interest] QtHelp module dependencies
Constantin Makshin
cmakshin at gmail.com
Sat Jul 30 23:26:15 CEST 2011
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?
Thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110731/663c553a/attachment.bin
More information about the Qt-interest-old
mailing list