[Qgis-developer] QtXml is no longer maintained in Qt5

Matthias Kuhn matthias.kuhn at gmx.ch
Wed Dec 3 07:46:11 PST 2014


Hi Marco,

I didn't look at it in detail and just based this recommendation on the
one from the QtXml documentation linked at the end of the original message.
Is there something in particular you think we will be missing? If so, it
might be good to start looking for alternative ways to go.

Regards,
Matthias

On 03.12.2014 16:24, Marco Hugentobler wrote:
> Hi Matthias
>
>> It will be a reasonably big undertaking to migrate any occurrence of
>> QDomDocument etc. to QXMLStreamWriter and QXMLStreamReader
>
>
> From a quick look, it seems QXMLStreamReader is more like a SAX
> parser. If so, it is not a full replacement for the DOM classes.
>
> Regards,
> Marco
>
> On 03.12.2014 16:12, Matthias Kuhn wrote:
>> Hi,
>>
>> As of Qt5, QtXml is no longer actively maintained [1]
>> PyQt5 does not even support it.
>>
>> It will be a reasonably big undertaking to migrate any occurrence of
>> QDomDocument etc. to QXMLStreamWriter and QXMLStreamReader (our whole
>> project saving and loading engine is based on this). And when we do this
>> we will likely have to increase the major version number of QGIS.
>>
>> In order not to introduce more work, please consider using
>> QXMLStreamWriter and QXMLStreamReader for new code you write that
>> involves parsing or producing XML. That does not concern working on code
>> that is based on code that is currently based on QtXml methods.
>>
>> Thank you,
>> Matthias
>>
>> [1] http://qt-project.org/doc/qt-5/qtxml-module.html#details
>>
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>



More information about the Qgis-developer mailing list