diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2023-05-05 11:16:12 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-05-16 20:09:38 +0200 |
commit | d75e772e2252a37c55ada3d84a301d3d296c1d02 (patch) | |
tree | 51cf4937ef614127df9bc5ddbe1d78446fe4e0c6 /dist/changes-4.7.3 | |
parent | 0c5135a9dfa6140d23d86b001c3054891c22dcb9 (diff) | |
download | qtbase-d75e772e2252a37c55ada3d84a301d3d296c1d02.tar.gz |
RSS listing example: prefer setDevice() over addData(readAll())
The network reply is a QIODevice, so the QXmlStreamReader can be set
to read from it directly, which it might potentially do incrementally,
rather than by reading all the data in one go.
In the process, change the set-up of the reply to first check that it
got a valid URL, then check it got a reply, before doing things with
that reply.
Pick-to: 6.5
Task-number: QTBUG-111228
Change-Id: I3642e24e0d10721e4a0325b35a94dcb5dfbcd4e6
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'dist/changes-4.7.3')
0 files changed, 0 insertions, 0 deletions