52North / IlwisCore

Integrated Land and Water Information System (ILWIS) is a remote sensing and GIS software. ILWIS Core is the functional center of ilwis4..
http://52north.org/communities/ilwis/
34 stars 13 forks source link

Bugfix/fix continous streaming #57

Closed ridoo closed 10 years ago

ridoo commented 10 years ago

fixes #56 by following the proposed solution. now the first data available from the device buffer gets parsed immediately.

The qt documentation about incremental parsing misses some best practice how to write new data to the device during parsing. However, this solution uses an event loop which waits for new data once the QXmlStreamReader::PrematureEndOfDocumentError occurs, writes it to the device after readyRead() signal got emitted and resumes parsing.